Commit Graph

6371 Commits

Author SHA1 Message Date
Henrik Lissner
5501b949ef
Refactor def-project-mode! with cl-defmacro 2018-06-16 11:34:19 +02:00
Henrik Lissner
02d532a09a
Set ibuffer-use-other-window in ui/popup/+hacks.el
It was originally set to accommodate the popup system.
2018-06-16 10:22:59 +02:00
Henrik Lissner
9c748600a5
Fix set-email-account! & minor refactor
Mentioned by @myme
2018-06-16 01:13:34 +02:00
Henrik Lissner
1cfc146e3a
Fix indentation of set-popup-rule!'s arguments 2018-06-16 00:40:37 +02:00
Henrik Lissner
435c940af9
Remove unused setting :company-dict-minor-mode 2018-06-16 00:40:37 +02:00
Henrik Lissner
33839f54e9
Minor refactor doom|init-fonts
Take advantage of custom-set-faces taking variadic arguments to group
all font-initializing forms in one form.
2018-06-16 00:40:37 +02:00
Henrik Lissner
a1278f3dff
Refactor def-package!
Rely on use-package mechanisms. def-package! should be as thin a wrapper
as possible. Ideally, we should simply be an alias, but there is no way
to inject :disabled into a use-package declaration, because it is
treated especially.
2018-06-16 00:36:27 +02:00
Henrik Lissner
2047a52fcd
Refactor add-transient-hook!
Use gensym instead of counter (and unintern the function symbol after
it's been used).
2018-06-15 23:54:07 +02:00
Henrik Lissner
8e6519ef1a
Fix & refactor after!'s :when keyword support
It no longer tries to load keywords (like :when and :any) as packages,
and won't treat :when's arguments as a require target.
2018-06-15 23:53:58 +02:00
Henrik Lissner
c0e271ef5a
Fix "Invalid read syntax: '#'" errors
Caused when Emacs reads back the unserialized font-specs it saved in
.local/custom.el. So we store them in xlfd format instead.
2018-06-15 22:44:20 +02:00
Henrik Lissner
5aeea4dcae
Refactor elm+flycheck integration #686
Ensure flycheck is started soon enough and its initializing code is
grouped with flycheck-elm's config.
2018-06-15 22:24:53 +02:00
Henrik Lissner
253fd77b2a
Fix intero-goto-definition #683 #684
It wasn't working in the first haskell buffer because of a race
condition. Intero was loading too late to register lookup handlers for
haskell-mode (for the first buffer).

By setting it to intero-mode, it is registered in time for intero-mode's
activation.
2018-06-15 22:16:49 +02:00
Henrik Lissner
fe6a9b0cd8
ui/popup: tie +defaults flag to +hacks 2018-06-15 22:13:44 +02:00
Henrik Lissner
cdcc4eec5d
Refactor +helm*replace-prompt
In case +helm-global-prompt is nil, which will effectively disable this
advice.
2018-06-15 22:10:40 +02:00
Henrik Lissner
1db3830bf3
Defer server startup
MY PRECIOUS MILLISECONDS OF STARTUP TIME
2018-06-15 21:44:44 +02:00
Henrik Lissner
ef90633432
Fix docset lookup & lazyload *-dash
Have to forward declare *-dash-docsets so we can lazy load the *-dash
libraries.

Also fixes a void-variable error because helm-dash-docsets isn't defined
by helm-dash, just used.
2018-06-15 21:42:38 +02:00
Henrik Lissner
7773a312aa
Update tests for doom/what-face 2018-06-15 21:31:13 +02:00
Henrik Lissner
4856217c84
Set default ispell-dictionary
Prevents wrong-type-argument stringp errors when starting flyspell-mode.
2018-06-15 21:25:32 +02:00
Henrik Lissner
4a0b98ef1c
lang/latex: fix removal of master file prompt
It makes me sad that this is necessary. Friends don't let friends use
anonymous functions for their package's hooks.
2018-06-15 21:16:37 +02:00
Henrik Lissner
9e85acec2c
Append flyspell-mode to LaTeX-mode-hook #654
If run too soon, the user has no opportunity to change
+spellcheck-immediately.
2018-06-15 21:00:38 +02:00
Henrik Lissner
d0abe742f9
Don't set ispell-program-name
ispell already looks for aspell, ispell, and hunspell on initialization.
2018-06-15 20:52:00 +02:00
Henrik Lissner
4d5a247d53
With C-u, doom/what-face doesn't fontify results
In case you get a face that's too hard to see.
2018-06-15 18:50:45 +02:00
Henrik Lissner
60e7b78739
Minor refactor of doom/describe-active-minor-mode 2018-06-15 18:32:53 +02:00
Henrik Lissner
4d017ae19e
Replace :yas-minor-mode with set-yas-minor-mode! 2018-06-15 18:03:50 +02:00
Henrik Lissner
ab9b8d97bc
Replace :rotate with set-rotate-patterns! autodef
And its references.
2018-06-15 18:03:50 +02:00
Henrik Lissner
8ca88aba9e
Replace :email with set-email-account! autodef 2018-06-15 18:03:50 +02:00
Henrik Lissner
8b739fb3b0
Set doom-file property less eagerly
Reduces the size of the autoloads file by 6-10% by only setting
doom-file property on raw forms or no-op macros.
2018-06-15 17:35:20 +02:00
Henrik Lissner
c0251aacee
Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
Henrik Lissner
bfdc00cf42
Prevent tide-mode error when node isn't installed
This error prevents you from opening js files.
2018-06-15 17:15:25 +02:00
Henrik Lissner
c3d3638832
Fix js defvaralias errors in Emacs 27
In later versions of Emacs, if a var alias is created *after* it has
been assigned a value, an error is thrown. This prevents the user from
opening js files.
2018-06-15 17:12:54 +02:00
Henrik Lissner
f81a0e6f41
Remove redundant def-setting! docstrings
def-setting! will now grab the autodef's docstring if it has an
:obsolete property defined.
2018-06-15 16:54:39 +02:00
Henrik Lissner
51aa60d67d
Fix set-electric! complaining about :char
A typo! Should be :chars
2018-06-15 16:50:39 +02:00
Henrik Lissner
e63be83298
Bind SPC f X to doom/delete-this-file 2018-06-15 16:20:20 +02:00
Henrik Lissner
d588332aa0
Fix SPC TAB leader prefix not being recognized
Due to a TAB => [tab] remap later in config/default.
2018-06-15 16:20:20 +02:00
Henrik Lissner
11b5a7116f
Allow map!'s :prefix to accept key vectors 2018-06-15 16:20:20 +02:00
Henrik Lissner
9e54e393ea
Use new evil-collection blacklist instead of hook 2018-06-15 16:20:20 +02:00
Henrik Lissner
588359cc5f
Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler!
+ :repl => set-repl-handler!
+ Updates all internal references.
2018-06-15 16:20:20 +02:00
Henrik Lissner
98632fe086
Fix doom-module-from-path on module directories
Allow PATH to be an exact path to a module.
2018-06-15 16:20:20 +02:00
Henrik Lissner
58601488d9
describe-module: shows all modules, dim disabled
Shows all modules, whether or not they are enabled and dims disabled
modules.
2018-06-15 16:20:20 +02:00
Henrik Lissner
a500bfb0a0
Rewrite+rename describe-settings->describe-setters
Will now list autodefs instead of def-settings, including an origin
module label to tell you where it comes from at a glance.
2018-06-15 16:20:20 +02:00
Henrik Lissner
1184967531
Advise symbol-file to return doom-file property
...if it exists. Otherwise fall back on original functionality. This
allows certain symbols to overwrite where Emacs thinks they were
defined.

Warning: only use this for autodefs! It may have unintended side-effects
for other symbols.
2018-06-15 16:20:20 +02:00
Henrik Lissner
da5e2d54ca
Refactor autodef generator; put metadata in autodefs
Adds the doom-module and doom-file symbol properties to autodefs,
allowing functions like doom/describe-setting some insight into the
origin of the autodef.
2018-06-15 16:20:20 +02:00
Henrik Lissner
bbda434365
Move startup optimizations into init.el
Doesn't really belong in core.el and only applies to interactive
sessions.
2018-06-15 16:20:20 +02:00
Henrik Lissner
7b1db08ea2
Replace :devdocs with set-devdocs! autodef 2018-06-15 16:20:20 +02:00
Henrik Lissner
b99ab59578
Replace :docset with set-docset! autodef 2018-06-15 16:20:20 +02:00
Henrik Lissner
cccccbb3fd
set-electric!: fix & improve error handling 2018-06-15 16:20:20 +02:00
Henrik Lissner
3c7c5d5120
Move doom-file-cookie-p to core-dispatcher
And rename it to doom--file-cookie-p
2018-06-15 16:20:20 +02:00
Henrik Lissner
c22b3da9f9
Move emacs/electric-indent to emacs/electric
This module will later be expanded to customize more of electric's
functionality.
2018-06-15 16:20:20 +02:00
Henrik Lissner
715167bec8
Add ability to mark modules as obsolete or moved
Better way to communicate to users that modules have moved without
breaking their config.
2018-06-15 16:20:20 +02:00
Henrik Lissner
9f0ebe42e8
Replace :electric with set-electric-rules!
And general refactor of the emacs/electric-indent module.

Also updates (set! :electric ...) references in various :lang modules
2018-06-15 13:32:07 +02:00