Commit Graph

109 Commits

Author SHA1 Message Date
7b761a9b42 Refactor feature deferral for (common|emacs)-lisp
'lisp-mode is now deferred, to make it easier to lazy-configure it
2018-12-05 22:11:54 -05:00
2a84836c11 +emacs-lisp-eval: emit backtrace on error
Running +eval/region (gr) and +eval/buffer (gR) will use
+emacs-lisp-eval (in emacs-lisp-mode buffers). This change will force it
to emit a backtrace in case of an error.
2018-09-25 23:26:08 -04:00
aa08f338de lang/emacs-lisp: add outline-minor-mode
And simplify outline-regexp for elisp buffers.
2018-09-20 15:28:03 -04:00
4067c8937e Remove doom-major-mode-names & doom|set-mode-name
And replace it with buffer-local mode-name setters. This is more
explicit and less magical, which is easier for users to discover and
change, if they'd like.
2018-09-18 15:19:50 -04:00
9d445c8a1f make compile: fix error in emacs-lisp
```
In toplevel form:
../modules/lang/emacs-lisp/autoload.el:71:21:Error: Wrong type argument: listp, "~/.emacs.d/modules/lang/emacs-lisp/autoload"
✕ Failed to compile modules/lang/emacs-lisp/autoload.el
```

This apparently attempts to get compiled multiple times, avoid that by
attempting to compile only if it is not compiled already.
2018-09-12 22:55:13 +01:00
c58077810d General refactor of modules
General code and comment improvements.

Also, removed the :desc's for csv-mode because map! is currently unable
to set which-key descriptions mode-locally, and should be avoided for
anything but global keybinds. This will be fixed when General is
introduced into Doom.
2018-09-09 09:58:20 -04:00
7d3ffdff06 Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
fd8f8c5108 feature/lookup: rewrite dash docset integration
+ Uses alist variable to store config, rather than hooks
+ Added check for installed docsets in +lookup/documentation
+ Set docsets for various language modules (c-mode, c++-mode, css-mode,
  scss-mode, sass-mode, web-mode, go-mode, racket-mode, emacs-lisp-mode,
  js2-mode, rjsx-mode, typescript-mode, rust-mode, and php-mode)
+ Made *eww* popups for dash docsets larger
+ Renamed set-docset! => set-docsets! (set-docset! is aliased to
  set-docsets!)
+ New +lookup/install-docset alias
2018-08-31 02:49:48 +02:00
a7b87fe3de Add +emacs-lisp-enable-extra-fontification option 2018-08-30 20:41:54 +02:00
edc9bf70af Delete trailing whitespace, globally, by default
Also adds doom|disable-delete-trailing-whitespace hook, which can be
used to disable this behavior on a per-buffer basis. If you want to turn
off this global behavior:

  (remove-hook 'write-file-functions #'delete-trailing-whitespace)
2018-08-30 20:36:15 +02:00
4acb3f29ab lang/emacs-lisp: reformat & autoload functions 2018-08-21 02:56:53 +02:00
1cb31d7cb5 lang/emacs-lisp: optimize symbol fontification
By ignoring symbols in comments and strings.
2018-08-20 23:47:31 +02:00
97bc69b9e5 lang/emacs-lisp: recenter window after elisp-def 2018-08-20 23:47:16 +02:00
3d4b03a8ea lang/emacs-lisp: replace xref with elisp-def
Possibly better goto-definition behavior than xref; needs more testing.
2018-08-19 00:13:18 +02:00
09678f8b1d lang/emacs-lisp: combine imenu var rules 2018-08-11 01:59:37 +02:00
631f075a82 lang/emacs-lisp: polish symbol fontification
Follow up on 76b4af99; resolves "flickering christmas lights" issue
where symbols were incorrectly fontified with the last face while typing
them.
2018-08-11 01:59:37 +02:00
76b4af99cc lang/emacs-lisp: rewrite extra fontification
Now fontifies defined variables and functions, rather than from a
hardcoded list.
2018-08-10 19:40:07 +02:00
63cc8b4306 Fix flycheck staying enabled after doom/reload 2018-08-08 23:37:30 +02:00
85af18a04d lang/emacs-lisp/+symbols: reformat & update
Removed some special forms (provide, require, and defalias)
2018-07-31 03:53:14 +02:00
9f074a1aa3 Add option to enable extra elisp fontification 2018-07-31 03:48:45 +02:00
45e1b371e6 Add after-load-alist to elisp variables 2018-07-30 23:04:27 +02:00
78d14b0439 Add after-delete-frame-functions to elisp variables 2018-07-30 13:19:15 +02:00
5f8f38f02a lang/emacs-lisp: highlight stdlib functions & vars
TODO: Make more customizable
2018-07-29 19:31:33 +02:00
a3942b5e0b Don't set lisp-mode's docset to Emacs Lisp
lisp-mode is for clisp.
2018-07-29 19:31:33 +02:00
a4a0441ec9 Rewrite comments for forced deferral of elisp-mode
Made clearer and more succinct.
2018-07-29 19:31:32 +02:00
35e5a47e9f Rewrote indentation detection
More robust and easier to customize.
2018-07-29 19:31:32 +02:00
90d09e6f93 Highlight-numbers on every prog-mode 2018-07-29 12:19:56 +10:00
1457ec3d15 Fix non-prefix key C error when loading macrostep
Due to malformed key spec.
2018-06-30 02:58:25 +02:00
f6478ab068 Refactor out map! usage in lang/emacs-lisp
Slowly phasing out map! for internal use.
2018-06-27 22:54:09 +02:00
3742a671a6 Rethink lazy-loading of elisp-mode 2018-06-27 22:52:46 +02:00
d55c7896f1 Fix lazy loading of elisp-mode config
elisp-mode is loaded at startup, so the usual methods won't work.
Instead, we tie a transient advice to the emacs-lisp-mode
function, *however*, this function is commonly called by various
packages to parse elisp code! So we have to make sure the emacs lisp
module only initializes the first time it is used interactively.
2018-06-27 18:51:24 +02:00
de0869c976 Ensure elisp-mode code is lazy loaded
This prevents the unnecessary eager-loading of many autodefs (and
evil-collection-elisp-mode), since the elisp-mode package is always
available at startup.
2018-06-25 15:43:48 +02:00
c69b4ab5ee Use C-n/C-p in macrostep instead of n/p
n/p overrides evil's jump-to-next/previous-search.
2018-06-24 10:35:36 +02:00
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
17981d6a61 Conform hook names to conventions
Also minor reformatting & comment corrections.
2018-06-17 02:25:12 +02:00
ec8ae0bedc Add :ui pretty-code & set-pretty-symbols! autodef
Along with defaults for C/C++, elm, elisp, js, typescript, web-mode, and
org-mode. Thanks to @ar1a for inspiration.
2018-06-16 19:32:25 +02:00
4d017ae19e Replace :yas-minor-mode with set-yas-minor-mode! 2018-06-15 18:03:50 +02:00
ab9b8d97bc Replace :rotate with set-rotate-patterns! autodef
And its references.
2018-06-15 18:03:50 +02:00
c0251aacee Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
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
b99ab59578 Replace :docset with set-docset! autodef 2018-06-15 16:20:20 +02:00
eaca8c58fa Move unit tests from ert to buttercup
Easier to organize and write. Now I can hopefully strive for better
coverage!
2018-06-15 03:42:01 +02:00
0020631b2e Fontify autodef/if cookies & *! symbols in elisp 2018-06-14 19:52:15 +02:00
8889d5cc2b Add :lang common-lisp 2018-06-13 20:10:37 +02:00
385cb476ba Fix redundant minor mode entries in elisp imenu 2018-06-02 15:22:41 +02:00
3b4aca6270 lang/emacs-lisp: refactor macrostep config 2018-05-29 16:00:51 +02:00
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
80adb9c1f6 General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
622b53479a lang/emacs-lisp: display major/minor modes in imenu 2018-05-16 12:14:47 +02:00
135ebd925f Enable global-eldoc-mode; less work for me! 2018-04-23 00:34:03 -04:00