Config hotkey cleanup; Add lsp lookup keys

This commit is contained in:
Leni Ven 2023-02-01 01:15:03 -08:00
parent ac09fc699f
commit 78d2a552ea
2 changed files with 18 additions and 15 deletions

View File

@ -8,6 +8,7 @@
(setq user-full-name "Leni Ven" (setq user-full-name "Leni Ven"
user-mail-address "leniv@stanford.edu") user-mail-address "leniv@stanford.edu")
;; Key bindings ;; Key bindings
(setq doom-localleader-key ",") ; Spacemacs like comma major mode (setq doom-localleader-key ",") ; Spacemacs like comma major mode
(map! :leader ; "SPC b 0" kills window and buffer (map! :leader ; "SPC b 0" kills window and buffer
@ -22,13 +23,13 @@
(map! :leader ; "SPC :" becomes M-: (map! :leader ; "SPC :" becomes M-:
:desc "Evaluate expression (emacs M-:)" :desc "Evaluate expression (emacs M-:)"
":" #'eval-expression) ":" #'eval-expression)
(after! magit
(map! :localleader (map! :localleader
(:map git-commit-mode-map (:map git-commit-mode-map
"c" #'with-editor-finish) "c" #'with-editor-finish)
(:map git-commit-mode-map (:map git-commit-mode-map
"q" #'with-editor-cancel)) "q" #'with-editor-cancel)
))
(setq (setq
;; Doom exposes five (optional) variables for controlling fonts in Doom: ;; Doom exposes five (optional) variables for controlling fonts in Doom:
@ -156,6 +157,7 @@
;; change `org-directory'. It must be set before org loads! ;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/") (setq org-directory "~/org/")
(after! format (after! format
'(not '(not
emacs-lisp-mode emacs-lisp-mode
@ -166,6 +168,7 @@
(after! spell (after! spell
(setq ispell-dictionary "english")) (setq ispell-dictionary "english"))
(use-package! lilypond-mode (use-package! lilypond-mode
:init :init
(add-to-list 'auto-mode-alist '("\\.ly\\'" . LilyPond-mode)) (add-to-list 'auto-mode-alist '("\\.ly\\'" . LilyPond-mode))

View File

@ -95,7 +95,7 @@
(eval +overlay) ; run code, run (also, repls) (eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists ;;gist ; interacting with github gists
lookup ; navigate your code and its documentation lookup ; navigate your code and its documentation
lsp ; M-x vscode (lsp +peek) ; M-x vscode
magit ; a git porcelain for Emacs magit ; a git porcelain for Emacs
make ; run make tasks from Emacs make ; run make tasks from Emacs
;;pass ; password manager for nerds ;;pass ; password manager for nerds