home/natto: emacs: some changes
add savehist add blamer tweak lsp to not format at RET Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#+TITLE: My Emacs Configuration
|
#+TITLE: My Emacs Configuration
|
||||||
#+AUTHOR: Amneesh Singh
|
#+AUTHOR: natto1784
|
||||||
#+PROPERTY: header-args :emacs-lisp :tangle yes
|
#+PROPERTY: header-args :emacs-lisp :tangle yes
|
||||||
|
|
||||||
* Settings
|
* Settings
|
||||||
@@ -89,6 +89,13 @@ Enable vertico
|
|||||||
("C-k" . vertico-previous)))
|
("C-k" . vertico-previous)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Save history over restarts
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package savehist
|
||||||
|
:init
|
||||||
|
(savehist-mode))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
Marginalia for description
|
Marginalia for description
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
@@ -183,7 +190,9 @@ To undo and redo easily like vi
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:defer t
|
:defer t
|
||||||
:commands lsp)
|
:commands lsp
|
||||||
|
:init
|
||||||
|
(setq lsp-enable-on-type-formatting nil))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Configure lsp-ui
|
*** Configure lsp-ui
|
||||||
@@ -276,11 +285,26 @@ For autocomplete
|
|||||||
:mode "\\.go\\'")
|
:mode "\\.go\\'")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Magit
|
** Git
|
||||||
|
magit for git operations
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package magit :defer t)
|
(use-package magit :defer t)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
blamer for git blame
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package blamer
|
||||||
|
:defer 20
|
||||||
|
:custom
|
||||||
|
(blamer-idle-time 0.3)
|
||||||
|
(blamer-min-offset 70)
|
||||||
|
:config
|
||||||
|
(global-blamer-mode 1)
|
||||||
|
:init
|
||||||
|
(setq blamer-show-avatar-p nil
|
||||||
|
blamer-max-commit-message-length 72))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** VTerm
|
** VTerm
|
||||||
*** Configure vterm
|
*** Configure vterm
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
Reference in New Issue
Block a user