@ -41,9 +41,36 @@ Quickly and efficiently surround text with ~evil-surround~[fn:3]. Highlight bloc
:config (global-evil-surround-mode 1))
:config (global-evil-surround-mode 1))
#+end_src
#+end_src
** Line numbering
Relative line numbers are important when using VI emulation keys. You can prefix commands with a number, allowing you to perform that action that number of times. Useful when navigating around pages that are hundreds, or even thousands of lines long.
#+begin_example
5:
4:
3:
2:
1:
156: << CURRENT LINE >>
1:
2:
3:
4:
5:
#+end_example
This behaviour is implemented with ~linum-relative~[fn:4], hooking into the ~display-line-number-mode~ as the backend for good performance in the GUI or TTY.
Toggle comments in a language agnostic manner with ~evil-nerd-commenter~[fn:4]. Add a custom binding to =M-;= to mimmic the behaviour in other popular Emacs configuration frameworks. What is =M-?= Called the *Meta* key in Emacs, it typically refers to =Alt=.
Toggle comments in a language agnostic manner with ~evil-nerd-commenter~[fn:5]. Add a custom binding to =M-;= to mimmic the behaviour in other popular Emacs configuration frameworks. What is =M-?= Called the *Meta* key in Emacs, it typically refers to =Alt=.
#+begin_src emacs-lisp
#+begin_src emacs-lisp
(use-package evil-nerd-commenter
(use-package evil-nerd-commenter
@ -51,6 +78,15 @@ Toggle comments in a language agnostic manner with ~evil-nerd-commenter~[fn:4].
@ -116,38 +116,6 @@ Sort completion candidates based on how recently or frequently they're selected.
(ivy-prescient-mode 1))
(ivy-prescient-mode 1))
#+end_src
#+end_src
* Line numbering
Relative line numbers are important when using VI emulation keys. You can prefix commands with a number, allowing you to perform that action that number of times. Useful when navigating around pages that are hundreds, or even thousands of lines long.