(Emacs)~formatting and minor edits for clarity and such

This commit is contained in:
2021-03-23 20:47:16 +00:00
parent b7ebd4b577
commit dabe7c2310

View File

@@ -345,7 +345,12 @@ greater functionality from vi to Emacs. Surround, commenting,
multiple cursors and further support to other packages are configured multiple cursors and further support to other packages are configured
here. here.
*** Evil Core *** Evil Core
Setup the evil package, with some basic keybinds. Setup the evil package, with some opinionated keybindings:
- Switch =evil-upcase= and =evil-downcase= cos I'd rather have the
non-capital one be upcase due to how much I use it
- Switch =evil-goto-mark= and =evil-goto-mark-line= as I'd rather have
the global one closer to the home row
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package evil (use-package evil
:hook (after-init-hook . evil-mode) :hook (after-init-hook . evil-mode)
@@ -372,8 +377,7 @@ Setup the evil package, with some basic keybinds.
evil-vsplit-window-right t evil-vsplit-window-right t
evil-want-abbrev-expand-on-insert-exit t) evil-want-abbrev-expand-on-insert-exit t)
:config :config
(fset #'evil-window-vsplit #'make-frame) (fset #'evil-window-vsplit #'make-frame))
(evil-mode))
#+end_src #+end_src
*** Evil surround *** Evil surround
#+begin_src emacs-lisp #+begin_src emacs-lisp
@@ -886,7 +890,7 @@ Collection of snippets, activate after yasnippet has been loaded.
:straight nil :straight nil
:general :general
(:keymaps 'isearch-mode-map (:keymaps 'isearch-mode-map
d "M-s" #'isearch-repeat-forward)) "M-s" #'isearch-repeat-forward))
#+end_src #+end_src
** Display line numbers ** Display line numbers
I don't like using this mode by default, but I'd like to configure it I don't like using this mode by default, but I'd like to configure it
@@ -1544,7 +1548,7 @@ work for me given the various TeX utilities installed via Arch.
#+end_src #+end_src
* Major modes, programming and text * Major modes, programming and text
Setups for common major modes and languages. Setups for common major modes and languages.
** General Text Configuration ** Text Configuration
Standard packages and configurations for the text-mode. These Standard packages and configurations for the text-mode. These
configurations are usually further placed on configurations are usually further placed on
*** Flyspell *** Flyspell
@@ -1616,7 +1620,7 @@ Show parenthesis for Emacs
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-hook 'prog-mode-hook #'show-paren-mode) (add-hook 'prog-mode-hook #'show-paren-mode)
#+end_src #+end_src
** General Programming Configuration ** Programming Configuration
*** Eldoc *** Eldoc
Eldoc presents documentation to the user upon placing ones cursor upon Eldoc presents documentation to the user upon placing ones cursor upon
any symbol. This is very useful when programming as it: any symbol. This is very useful when programming as it:
@@ -1861,7 +1865,7 @@ vanilla =org-goto=. Also records for auto insertion.
(define-auto-insert '("\\.org\\'" . "Org skeleton") (define-auto-insert '("\\.org\\'" . "Org skeleton")
'("Enter title: " '("Enter title: "
"#+title: " str | (buffer-file-name) "\n" "#+title: " str | (buffer-file-name) "\n"
"#+author: " user-full-name "\n" "#+author: " (read-string "Enter author: ") | user-full-name "\n"
"#+description: " (read-string "Enter description: ") | "Description" "\n" "#+description: " (read-string "Enter description: ") | "Description" "\n"
"#+options: toc:nil\n\n" "#+options: toc:nil\n\n"
"#+begin_center\n" "#+begin_center\n"