diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 8b973a5e..868fc1e3 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -34,6 +34,11 @@ M-x org-bable-tangle (setq visible-bell t) #+end_src +* Keymaps +#+begin_src emacs-lisp +(global-set-key (kbd "C-M-j") 'counsel-switch-buffer) +(global-set-key (kbd "") 'keyboard-escape-quit) +#+end_src * Fonts #+begin_src emacs-lisp @@ -362,7 +367,7 @@ make sure to setup authinfo (setq auth-sources '("~/.authinfo")) #+end_src **** Lsp-mode -***** Inital Setup +***** Language Servers #+begin_src emacs-lisp (use-package lsp-mode :commands (lsp lsp-deferred) @@ -371,6 +376,13 @@ make sure to setup authinfo :config (lsp-enable-which-key-integration t)) #+end_src +***** Languages +****** Typescript +#+begin_src emacs-lisp + (use-package js2-mode + :mode "\\.js\\'" + :hook (js2-mode . lsp-deferred)) +#+end_src * Org Mode Configuration Setup ** Babel Languages #+begin_src emacs-lisp diff --git a/config/emacs/init.el b/config/emacs/init.el index 3e4c0a76..756e7470 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -17,6 +17,9 @@ ;; Bell (setq visible-bell t) +(global-set-key (kbd "C-M-j") 'counsel-switch-buffer) +(global-set-key (kbd "") 'keyboard-escape-quit) + ;; Font (set-face-attribute `default nil :font "JetBrains Mono" :height 125) @@ -310,6 +313,10 @@ :config (lsp-enable-which-key-integration t)) +(use-package js2-mode +:mode "\\.js\\'" +:hook (js2-mode . lsp-deferred)) + (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t)