doomemacs/modules/lang/emacs-lisp/config.el

35 lines
1.3 KiB
EmacsLisp
Raw Normal View History

2017-01-16 23:30:11 -05:00
;;; lang/emacs-lisp/config.el
2015-06-15 09:06:10 +02:00
2017-01-16 23:30:11 -05:00
(add-hook! emacs-lisp-mode
'(+emacs-lisp|init
highlight-quoted-mode
auto-compile-on-save-mode))
2015-06-15 09:06:10 +02:00
2017-01-16 23:30:11 -05:00
(defun +emacs-lisp|init ()
(setq mode-name "Elisp") ; [pedantry intensifies]
2017-01-16 23:30:11 -05:00
(add-hook 'before-save-hook 'delete-trailing-whitespace nil t)
2016-05-11 05:36:49 -04:00
(font-lock-add-keywords
2017-01-16 23:30:11 -05:00
nil `(("(\\(lambda\\)" (1 (ignore (compose-region (match-beginning 1) (match-end 1) 'decompose-region))))
("(\\(\\(doom\\)\\([-:/|!][^) ]*\\)?\\)[) \n]" (1 font-lock-builtin-face))
2016-05-20 22:37:30 -04:00
;; Highlight doom macros (macros are fontified in emacs 25+)
2017-01-16 23:30:11 -05:00
("(\\([^ ]+!\\)"
2016-05-11 05:36:49 -04:00
(1 font-lock-keyword-face append))
;; Ert
2017-01-16 23:30:11 -05:00
("(\\(ert-deftest\\) \\([^ ]+\\)"
2016-05-11 05:36:49 -04:00
(1 font-lock-keyword-face)
(2 font-lock-function-name-face))))
2017-01-16 23:30:11 -05:00
(dolist (i '(("Evil Command" "\\(^\\s-*(evil-define-command +\\)\\(\\_<[^ ]+\\_>\\)" 2)
("Evil Operator" "\\(^\\s-*(evil-define-operator +\\)\\(\\_<[^ ]+\\_>\\)" 2)
("Package" "\\(^\\s-*(\\(use-package\\|package!\\) +\\)\\(\\_<[^ \n]+\\_>\\)" 3)
2016-05-06 01:57:50 -04:00
("Spaceline Segment" "\\(^\\s-*(spaceline-define-segment +\\)\\(\\_<.+\\_>\\)" 2)))
(push i imenu-generic-expression)))
NARF v0.7.0 vcs: + +git-gutter to conf-modes; -git-gutter from evil-insert-state-exit + switch github-browse-file for browse-at-remote + fix <leader>ob; add <leader>d[./sr] vc bindings + vc-annotate bindings and initial state Workgroups2 integration: + don't mess with buffers (speeds up emacs a lot!) + unicode numbers in display + single display function + remember workgroup uid instead (and smarter :tabrename) + clean up after wg update Org-mode + give highlight precedence to links in org-mode + enable encryption + config clean up + use different font for org + exclude attachments in recentf + redo latex and inline-image config + add narf/org-open-notes + update file templates for org CRM Mode-line + polish mode-line + decouple from spaceline-segments.el + refactor narf|spaceline-env-update + add macro-recording and buffer-size indicators to mode-line + python: '2>&1' in env-command + flycheck fringe indicator: change to arrow Aesthetics + update narf-dark-theme + add narf-minibuffer-active face + change writing indicator in writing-mode Misc + fix whitespace in display-startup-echo-area-message + reset fonts for more unicode characters + custom imenu entries + helm-imenu fontification + enable yascroll-bar in REPLs + reorganize my-commands.el + force quit iedit on ESC in normal mode + update snippets submodule + remove ido init (helm handles it all) [EXPERIMENTAL] + back to Terminus(TTF) font + popwin: update config for git-gutter and vc-diff windows + highlight :g[lobal] and :al[ign] matches + decouple narf/get-buffers+narf/get-all-buffers from wg-mess-with-buffer-list + fix narf/helm-buffers-dwim (add interactive form)
2015-12-11 16:51:04 -05:00
2017-01-16 23:30:11 -05:00
(after! auto-compile
(setq auto-compile-display-buffer nil
auto-compile-use-mode-line nil))
2015-11-24 03:44:17 -05:00
2017-01-16 23:30:11 -05:00
(after! slime
(setq inferior-lisp-program "clisp"))