Commit Graph

7056 Commits

Author SHA1 Message Date
Henrik Lissner
fb233bd37d
completion/helm: fix evil keybinds in helm
Evil-mode was disabled in the minibuffer due to odd behavior, causing
all helm's evilified keybinds to be inaccessible.
2018-07-30 03:43:43 +02:00
Henrik Lissner
14f4e4384a
lang/latex: general refactor 2018-07-30 03:43:43 +02:00
Henrik Lissner
2e6c362df9
lang/latex: replace viewer flags with variable
The +zathura, +skim, +okular and +pdf-tools module flags have been
removed in favor of +latex-viewers, which takes a list of symbols. Its
order determines the priority. The first viewer found on your system is
used.

If none of these viewers are found, it will fall back to
latex-preview-pane.
2018-07-30 03:43:43 +02:00
Henrik Lissner
c96c2aa7fb
Add +latex-symbols-compand-backend delegate #754
If +latex-enable-unicode-math is non-nil, company-math-symbols-unicode
will be used instead of company-math-symbols-latex.
2018-07-30 03:43:42 +02:00
Henrik Lissner
9f4b6869b6
lang/php: remove redundant :interpreter
Already defined in php-mode's autoloads.
2018-07-30 03:43:42 +02:00
Henrik Lissner
22aeaec399
Refactor how company-backends are set and stored
Company backends are now built from an alist (+company-backend-alist),
which can be manipulated through set-company-backend!. Backends can now
be set to all children of a parent mode (text-mode, prog-mode, etc),
like so:

  (set-company-backend! :derived 'text-mode 'company-dabbrev)

or only for an exact major-mode:

  (set-company-backend! 'markdown-mode 'company-dabbrev-code)

Backends cascade. So combining the two examples above will cause
company-backends in a markdown-buffer (which is derived from text-mode)
to be (company-dabbrev-code company-dabbrev).
2018-07-30 03:43:42 +02:00
Henrik Lissner
248e9a487f
Stop php-extras altering global company-backends 2018-07-30 02:57:50 +02:00
Henrik Lissner
fe3a73c118
Rebind RET rather than remapping newline
The remapping was global, preventing its use in insert mode anywhere.
Binding to RET is less destructive.
2018-07-30 02:57:50 +02:00
Henrik Lissner
b33b5ed624
Cleanup recentf list on kill-emacs 2018-07-30 02:57:50 +02:00
Henrik Lissner
c24a3671b1
lang/racket: setq racket-smart-open-bracket-enable
Instead of doing so in a hook (which is harder to customize).

Addresses #772
2018-07-30 02:57:50 +02:00
Henrik Lissner
55870458e6
Byte-compile mode-line segment :eval forms
Byte-compiled function calls are ~10% faster than evalling quoted forms.
2018-07-30 02:57:50 +02:00
Henrik Lissner
1205db0f73
Decouple :modeline popup rule from modeline API
The :modeline property still takes:

  t => default modeline
  nil => no modeline (the default)

But now also accepts:

  function => uses its return value as the mode-line-format
  anything non-nil => used directly as the mode-line-format

This is to decouple the popup API from the modeline API. You can still
use them compositionally:

  (set-popup-rule "abc" :modeline (lambda () (set-modeline! :project)))
2018-07-30 02:57:50 +02:00
Henrik Lissner
cb7e471c90
General reformatting & comment revision/cleanup 2018-07-29 19:31:33 +02:00
Henrik Lissner
5f8f38f02a
lang/emacs-lisp: highlight stdlib functions & vars
TODO: Make more customizable
2018-07-29 19:31:33 +02:00
Henrik Lissner
a3942b5e0b
Don't set lisp-mode's docset to Emacs Lisp
lisp-mode is for clisp.
2018-07-29 19:31:33 +02:00
Henrik Lissner
253660095f
lang/racket: minor reformatting 2018-07-29 19:31:33 +02:00
Henrik Lissner
53b246ef8c
Remove racket-mode eval handler
The quickrun package already defines it.
2018-07-29 19:31:33 +02:00
Henrik Lissner
923093b263
Don't set buffer-read-only in +doom-dashboard-mode
This is already set by the parent mode, special-mode.
2018-07-29 19:31:33 +02:00
Henrik Lissner
a4a0441ec9
Rewrite comments for forced deferral of elisp-mode
Made clearer and more succinct.
2018-07-29 19:31:32 +02:00
Henrik Lissner
66056e7a5d
Move ob-racket to lang/org & cleanup
+ Remove redundant ob-crystal block
+ Move ob-ipython into separate section
+ Move ob-racket from lang/racket
2018-07-29 19:31:32 +02:00
Henrik Lissner
884173112c
Add :lang racket to init.example.el 2018-07-29 19:31:32 +02:00
Henrik Lissner
2f7f8f0868
+ivy/tasks: emit better error if project has no tasks 2018-07-29 19:31:32 +02:00
Henrik Lissner
35e5a47e9f
Rewrote indentation detection
More robust and easier to customize.
2018-07-29 19:31:32 +02:00
Henrik Lissner
088480047c
Polish & move new modeline into :ui modeline
Removes modeline library out of core-ui and contains them in :ui
doom-modeline and :ui modeline.

:ui modeline will eventually replace :ui doom-modeline, but is still
considered experimental. This update provides makes it much more stable
and closer to being feature complete.
2018-07-29 19:31:32 +02:00
Henrik Lissner
db8ed4aac6
lang/php: add +hack support 2018-07-29 17:42:00 +02:00
Henrik Lissner
6cfbeaa4f6
Fix (cl-)?defmacro autodefs
They were formly inserted with (cl-)?defmacro replaced with nil,
otherwise.
2018-07-29 17:42:00 +02:00
Henrik Lissner
ea175180ef
Fix incorrect load-file-name in autodef conditions
Causing errors where featurep! calls in ;;;###autodef cookie conditions
couldn't resolve the correct module from load-file-name.
2018-07-29 17:42:00 +02:00
Henrik Lissner
770463aff2
Don't copy macro autodefs into autoloads verbatim
This makes it necessary to reload the autoloads anytime a macro is
modified at all.
2018-07-29 17:42:00 +02:00
Henrik Lissner
143fdd17e1
Use insert mode only if git commit is empty 2018-07-29 17:42:00 +02:00
Henrik Lissner
d094162d31
Refactor how git-timemachine loads magit-blame
Loading magit-blame immediately after git-timemachine is premature, only
one command uses magit-blame (git-timemachine-blame), so we defer it
until that command is called (also, it makes more sense to be in the
emacs/vc module, than tools/magit).
2018-07-29 17:42:00 +02:00
Henrik Lissner
c87c2bd5a6
Remove redundant magit-completing-read-function 2018-07-29 17:41:59 +02:00
Henrik Lissner
f3a3465c04
history-length = 250
Reduce from 500 to slim savehist data files and general Emacs memory
footprint.
2018-07-29 17:41:59 +02:00
Henrik Lissner
e3dc3a6376
Shut up magit-todos-mode complaining about jT
I unbound it, stop complaining about it!
2018-07-29 17:41:59 +02:00
Henrik Lissner
a2ffbe4ede
Add new emacs/hideshow module
Brings better default code folding support to various languages, like
yaml, ruby, matlab, haml and vimrc. Hideshow is still quite
unsophisticated and will need the help of another package for complete
code folding functionality. Perhaps origami or vimish fold.

The code-folding functional in the feature/evil module will soon be
replaced by that.
2018-07-29 17:41:59 +02:00
Henrik Lissner
05d9a83ff7
Unpropertize kill-ring in savehist data
This speeds up startup marginally.
2018-07-29 17:41:59 +02:00
Henrik Lissner
2e25989dc5
undo-tree-enable-undo-in-region = nil
Try to save off the elusive and annoying "unrecognized entry in undo
list undo-tree-canary" error produced by undo-tree.
2018-07-29 17:41:59 +02:00
Henrik Lissner
f0f2c92b8d
lang/php: prioritize phpctags in PATH
And fail more gracefully if phpctags isn't installed
2018-07-29 17:41:59 +02:00
Henrik Lissner
5aef36951d
Goto file keybind in helm-ag-edit buffers 2018-07-29 17:41:59 +02:00
Henrik Lissner
44bf6861a6
Fix overeager theme reloading when creating frames 2018-07-29 17:41:59 +02:00
Henrik Lissner
c75b2a36ab
Don't reload theme at startup if already enabled 2018-07-29 17:41:58 +02:00
Henrik Lissner
46c49cf55a
app/twitter: fix missing epa--decode-coding-string
In latest Emacs 27, this alias is missing.
2018-07-29 17:41:58 +02:00
Henrik Lissner
22a2d1de60
app/twitter: add support for +new modeline 2018-07-29 17:41:58 +02:00
Henrik Lissner
593666933d
Convert old def-modeline! from macro to function
This makes it easier to use dynamically, and ensures that
doom--prepare-modeline-segemnts isn't run prematurely (at macro
expansion time).
2018-07-29 17:41:58 +02:00
Henrik Lissner
df233eb1a9
lang/pdf: fix compatibility with +new modeline 2018-07-29 17:41:58 +02:00
Henrik Lissner
9abafcf74a
Rename def-modeline! -> def-modeline-format!
As to differentiate it from the old def-modeline! macro. This only
affects users of the +new modeline.
2018-07-29 17:41:55 +02:00
Henrik Lissner
6bcc01f591
Merge pull request #754 from patrl/latexRefactor
DONE: large refactor of latex
2018-07-29 17:39:46 +02:00
Henrik Lissner
2a3c2ce7f7
Merge pull request #772 from mdssjc/racket-lang
Add Racket lang
2018-07-29 17:38:37 +02:00
Henrik Lissner
960bde480d
Install ob-racket conditionally
I'll move this to lang/org/packages.el later (not easy to do from the github text editor).
2018-07-29 17:29:27 +02:00
Henrik Lissner
238e37a171
lang/racket: refactor and cleanup
+ Removed highlight-quoted block because `highlight-quoted-mode` is already autoloaded by the package
+ Removed org-babel-do-load-languages because lang/org/+babel already has a built-in autoloader for ob-* packages.
+ Removed flycheck-mode from racket-mode hook because it is enabled globally in :feature syntax-checker
+ Removed highlight-numbers-mode from racket-mode-hook because it is enabled on prog-mode-hook in core-ui (as of #770)
+ Fix racket popup rule regexp
+ Remove popup rules that were redundant with the defaults
+ Remove racket-mode-specific company-frontends value, looks like personal preference, otherwise should be set in a separate hook function that is easily recognized and disabled, if the user desires.
+ Remove :interpreter and :mode properties because they are already registered by the racket-mode package.
+ Move racket-unicode-input-method-enable into :hook property (to defer the config)
2018-07-29 17:22:01 +02:00
Henrik Lissner
d75ffd3851
Merge pull request #770 from ar1a/highlight-numbers
Highlight-numbers on every prog-mode
2018-07-29 16:52:36 +02:00