Clear up functions named with +custom
This commit is contained in:
parent
1f20dd7bc1
commit
dd5387cd7e
23 changed files with 187 additions and 183 deletions
|
|
@ -5,32 +5,32 @@
|
|||
(require 'icejam-prog-mode)
|
||||
(require 'icejam-transient)
|
||||
|
||||
(transient-define-prefix +custom-lang-python/transient-context-menu ()
|
||||
(transient-define-prefix icejam-lang-python/transient-context-menu ()
|
||||
"Python Buffer Commands."
|
||||
[""
|
||||
["LSP"
|
||||
("m" "iMenu" lsp-ui-imenu)]
|
||||
["Buffer"
|
||||
("r" "Reload" revert-buffer-no-confirm)
|
||||
("r" "Reload" icejam-revert-buffer-no-confirm)
|
||||
("f" "Format" lsp-format-buffer)
|
||||
("i" "Indent" mark-and-indent-whole-buffer)
|
||||
("i" "Indent" icejam-mark-and-indent-whole-buffer)
|
||||
("e" "Show Errors" flycheck-list-errors)]]
|
||||
[""
|
||||
("q" "Quit" keyboard-quit)])
|
||||
|
||||
|
||||
(defun +custom-lang-python/activate-python-mode ()
|
||||
(defun icejam-lang-python/activate-python-mode ()
|
||||
(lsp)
|
||||
|
||||
(column-enforce-n 99)
|
||||
|
||||
(define-key python-mode-map (kbd "C-c l") '+custom-lang-python/transient-context-menu)
|
||||
(define-key python-mode-map (kbd "C-c l") 'icejam-lang-python/transient-context-menu)
|
||||
|
||||
;; Company list override
|
||||
(add-to-list (make-local-variable 'company-backends)
|
||||
'(company-capf company-yasnippet)))
|
||||
|
||||
(add-hook 'python-mode-hook '+custom-lang-python/activate-python-mode)
|
||||
(add-hook 'python-mode-hook 'icejam-lang-python/activate-python-mode)
|
||||
|
||||
(provide 'icejam-lang-python)
|
||||
;;; icejam-lang-python.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue