Commit Graph

6537 Commits

Author SHA1 Message Date
Henrik Lissner
be48751a45
Change unsetting with set-lookup-handlers!
Instead of passing :unset, pass in nil as its second argument.
2018-06-22 01:49:20 +02:00
Henrik Lissner
ff7823bfc9
Refactor module deprecation checks in doom!
Also changes the structure of doom-obsolete-modules, and adds :feature
version-control to it.
2018-06-22 01:49:20 +02:00
Henrik Lissner
60779c9aed
feature/version-control => ui/vc-gutter, emacs/vc
Reorganize vcs functionality. Moves the custom fringe bitmaps into :ui
vc-gutter.
2018-06-22 01:49:20 +02:00
Henrik Lissner
e05d7cfee0
Change flycheck initialization strategy
Initialize it globally and turn it off where needed, instead of enabling
it on demand. Also fixes void-function: flycheck-mode errors when
:feature syntax-checker is disabled. This is experimental.

Indirectly fixes #710
2018-06-22 01:49:20 +02:00
Henrik Lissner
dbc7b667cf
Simplify set-docset! & add unset capability
Removed :add and :remove capabilities. Now appends the provided docset
to the mode's list of docsets, if one exists.
2018-06-22 01:49:20 +02:00
Henrik Lissner
ad2de8e2e5
Fix set-devdocs! not setting docsets properly
Would use MODES as a key, instead of mode.
2018-06-22 01:49:20 +02:00
Henrik Lissner
8bd9b24137
Add unset capability to set-file-template! 2018-06-22 01:49:20 +02:00
Henrik Lissner
445ca59b67
Correct make-buffer-local => make-local-variable
Reported by @UndeadKernel
2018-06-22 01:49:19 +02:00
Henrik Lissner
bc87ccf894
Refactor set-company-backend! & revise docstring 2018-06-22 01:49:19 +02:00
Henrik Lissner
d01f39d658
Add unsetting capability to set-pretty-symbols!
+ Allows (set-pretty-symbols! 'some-mode nil)
+ Changes the semantics of +pretty-code-enabled-modes, which is now t by
  default (meaning enable all modes). It also supports '(not ...).
2018-06-22 01:49:19 +02:00
Henrik Lissner
1dd023cda1
Fix error if private config.el doesn't exist 2018-06-22 01:49:19 +02:00
Henrik Lissner
0354edc3a6
Merge pull request #708 from mattly-cambia/develop
Look for the correct feature name for org+rest
2018-06-21 02:08:02 +02:00
Matthew Lyon
c0fc9d3db0 Look for the correct feature name for org+rest 2018-06-20 17:04:22 -07:00
Henrik Lissner
b0f1804799
Unbind double-quote in lisp-mode
Causes double-double-quoting. smartparens will handle it.
2018-06-20 22:58:05 +02:00
Henrik Lissner
aa4c9744f8
Fix set-company-backends! & update docstring
+ It wasn't preserving insertion order of multiple backends
+ It failed when BACKENDS = nil (supposed to unset mode backends)
+ Use eq/equal as a test-fn conditionally (glorious, glorious premature
  optimization)
2018-06-20 19:44:08 +02:00
Henrik Lissner
898449e374
Add completion/company tests 2018-06-20 19:09:05 +02:00
Henrik Lissner
d7f8a9591e
completion/ivy: replace smex with amx
Faster and maintained.
2018-06-20 18:39:44 +02:00
Henrik Lissner
3e802c1b15
Fix +default/easymotion aborting evil operator
Now evil operators will work with +default/easymotion when you first
startup Emacs.

Reported by @ar1a
2018-06-20 18:39:44 +02:00
Henrik Lissner
50b34d2671
Fix org-mode file template precedence
Otherwise default .org template always takes precedence.
2018-06-20 18:39:44 +02:00
Henrik Lissner
17678992e2
Minor, general refactor of lookup autoload library 2018-06-20 18:39:44 +02:00
Henrik Lissner
65b2d5eb28
Update +lookup/(definition|references) docs 2018-06-20 18:39:44 +02:00
Henrik Lissner
099040c523
Add helm support to +lookup defs/refs fallback
Instead of hard-coding counsel+ivy support.
2018-06-20 18:39:44 +02:00
Henrik Lissner
6d020a6305
Change add :unset support to set-lookup-handlers!
And update its documentation.
2018-06-20 18:39:44 +02:00
Henrik Lissner
d5bb770ea6
Make +(helm|ivy)-file-search public and autoloaded
So it can be safely used anywhere. Maybe these should be defgenerics?
2018-06-20 18:39:08 +02:00
Henrik Lissner
eacaf45279
Merge pull request #707 from mattly-cambia/fix-electric-warning-from-example-init
Fix init.example `electric` module
2018-06-20 18:36:25 +02:00
Matthew Lyon
9d8679cfaa Fix init.example electric module
I've been keeping my init up-to-date with the example, but the example
still has `electric-indent` whereas `make` warns me it's been renamed to
`electric`. This provides the correct module name in the example.
2018-06-20 09:32:05 -07:00
Henrik Lissner
6fbd3407e0
Fix block/jsdoc comment continuation in typescript
Also improves writing block comments in js2-mode and rjsx-mode.

Reported by @ar1a
2018-06-20 14:25:05 +02:00
Henrik Lissner
638ff6b0a2
Fix wrong-type-argument: sequencep from org-agenda
Caused by +org|exclude-agenda-buffers-from-workspace assuming
org-agenda-new-buffers would always be non-nil... then it wasn't.

Reported by @ar1a
2018-06-20 13:31:46 +02:00
Henrik Lissner
3d3d04b21c
Move use-package config to core-modules 2018-06-20 12:48:59 +02:00
Henrik Lissner
643c64c19f
Prevent creation of ~/.emacs.d/elpa
Due o package-gnupghome-dir not being set properly.
2018-06-20 12:45:51 +02:00
Henrik Lissner
d4ba03791f
Don't async refresh package contents
The performance benefit is minor and the loss of feedback is major in
case of errors.
2018-06-20 12:45:03 +02:00
Henrik Lissner
1efb0a8298
Rename core-dispatcher -> core-cli
The file's role is easier to guess at a glance.
2018-06-20 12:04:11 +02:00
Henrik Lissner
8e23ab0a05
Add -h/--help usage info to bin/org-tangle 2018-06-20 11:29:29 +02:00
Henrik Lissner
60d6f70646
bin/org-tangle: fix uninitialzed all-blocks et co 2018-06-20 11:00:20 +02:00
Henrik Lissner
5cf1cbb048
Merge pull request #705 from AloisJanicek/develop
feature/snippets: add missing autoload cookie
2018-06-20 10:58:17 +02:00
Henrik Lissner
5af45df094
Merge pull request #706 from ar1a/javascript-pretty-symbols
lang/javascript: fix set-pretty-symbols!
2018-06-20 10:57:19 +02:00
Aria Edmonds
4ef2ff8797
lang/javascript: fix set-pretty-symbols! 2018-06-20 18:29:04 +10:00
Alois Janíček
222702b15a
feature/snippets: add missing autoload cookie 2018-06-20 09:17:13 +02:00
Henrik Lissner
6ce30d0116
add-yas-minor-mode!: fix void-variable: mode error 2018-06-20 02:33:24 +02:00
Henrik Lissner
71f0b3ba10
Minor error handler refactor in package management
Allow debugger to produce better backtraces.
2018-06-20 02:23:55 +02:00
Henrik Lissner
27ab47cd11
Improve *Backtrace* popup rule
+ High vslot = unlikely to be replaced by other popups.
+ Make it large; backtraces are important!
+ Don't allow ESC to close it. It must be done manually, with q or zx
2018-06-20 02:12:37 +02:00
Henrik Lissner
5cb1d5d4c9
eval-after-load -> with-eval-after-load
The way Doom was using eval-after-load ensured its form were never
byte-compiled or even checked by the byte-compiler, because they were
treated as quoted forms (data), and thus eval'ed.

Friends don't let friends use eval.
2018-06-20 02:08:34 +02:00
Henrik Lissner
9f9b7ad792
Add EMACSDIR envvar support to bin/doom
As an alternative to the -e/--emacsd options. Sometimes it is more
consistent to customize bin/doom this way. e.g.

EMACS=/another/bin/emacs DOOMDIR=~/someplace EMACSDIR=~/emacsd bin/doom install
2018-06-20 02:07:20 +02:00
Henrik Lissner
151858a8dc
Redesign Doom error handling
Another refactor, again to improve the locality of doom errors and make
the data that accompanies them more useful in determining the origin and
source of issues. Also, bin/doom is now a little more informative about
how to debug errors.
2018-06-20 02:07:12 +02:00
Henrik Lissner
84756b33a0
Fix closure symbolp errors blocking stacktraces
Caused because of symbol-file advice assuming SYMBOL would always be a
symbol.

This would prevent backtraces from happening, making debugging
impossibly obtuse.

This may indirectly fix #701
2018-06-20 01:59:07 +02:00
Henrik Lissner
600d7bcb4f
core: minor refactor/reformat
+ Prefer cl-loop over cl-mapcan for performance reasons.
+ Remove unnecessary let form
+ Log doom-try-run-hook when doom-debug-mode is on.
2018-06-19 20:55:44 +02:00
Henrik Lissner
adf9b7d26f
Log & error-handle in :after-call hooks
A load error no longer leaves Emacs in a broken state, but will report
errors. These errors can still be investigated with debug-on-error on.
2018-06-19 20:54:09 +02:00
Henrik Lissner
e069139b1c
Prevent kill-emacs-hook running after byte-compile
Prevents harmless errors after byte-compiling, or recentf needlessly
saving its cache to file.
2018-06-19 20:51:14 +02:00
Henrik Lissner
7a98919597
Fix quoting in babel popup rules
Reported by @fuxialexander
2018-06-19 20:50:16 +02:00
Henrik Lissner
f3b42a73b3
Silence early-init.el load at startup 2018-06-19 19:18:27 +02:00