Clean up Elixir and Elisp modes
Some checks failed
/ Test config on ${{matrix.node}} (20) (push) Has been cancelled
Some checks failed
/ Test config on ${{matrix.node}} (20) (push) Has been cancelled
This commit is contained in:
parent
5044e50b03
commit
d054822cdd
7 changed files with 65 additions and 43 deletions
|
|
@ -4,12 +4,25 @@
|
|||
|
||||
(require '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
|
||||
|
||||
(transient-define-prefix +custom-lang-elisp/transient-context-menu ()
|
||||
"Elisp Buffer Commands."
|
||||
[""
|
||||
["Buffer"
|
||||
("r" "Reload" revert-buffer-no-confirm)
|
||||
("i" "Indent" mark-and-indent-whole-buffer)
|
||||
("e" "Show Errors" flycheck-list-errors)]]
|
||||
[""
|
||||
("q" "Quit" keyboard-quit)])
|
||||
|
||||
(defun activate-emacs-lisp-mode ()
|
||||
"Goodies for editing Emacs files."
|
||||
(set-indent 2) ;; Default indentation of 2 characters
|
||||
(column-enforce-n 80)
|
||||
(setq-default indent-tabs-mode nil)
|
||||
|
||||
(define-key emacs-lisp-mode-map
|
||||
(kbd "C-c l") '+custom-lang-elisp/transient-context-menu)
|
||||
|
||||
;; Company list override
|
||||
(add-to-list (make-local-variable 'company-backends)
|
||||
'(company-yasnippet company-elisp)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue