(Emacs)~formatting and minor edits for clarity and such
This commit is contained in:
@@ -345,7 +345,12 @@ greater functionality from vi to Emacs. Surround, commenting,
|
||||
multiple cursors and further support to other packages are configured
|
||||
here.
|
||||
*** 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
|
||||
(use-package evil
|
||||
:hook (after-init-hook . evil-mode)
|
||||
@@ -372,8 +377,7 @@ Setup the evil package, with some basic keybinds.
|
||||
evil-vsplit-window-right t
|
||||
evil-want-abbrev-expand-on-insert-exit t)
|
||||
:config
|
||||
(fset #'evil-window-vsplit #'make-frame)
|
||||
(evil-mode))
|
||||
(fset #'evil-window-vsplit #'make-frame))
|
||||
#+end_src
|
||||
*** Evil surround
|
||||
#+begin_src emacs-lisp
|
||||
@@ -886,7 +890,7 @@ Collection of snippets, activate after yasnippet has been loaded.
|
||||
:straight nil
|
||||
:general
|
||||
(:keymaps 'isearch-mode-map
|
||||
d "M-s" #'isearch-repeat-forward))
|
||||
"M-s" #'isearch-repeat-forward))
|
||||
#+end_src
|
||||
** Display line numbers
|
||||
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
|
||||
* Major modes, programming and text
|
||||
Setups for common major modes and languages.
|
||||
** General Text Configuration
|
||||
** Text Configuration
|
||||
Standard packages and configurations for the text-mode. These
|
||||
configurations are usually further placed on
|
||||
*** Flyspell
|
||||
@@ -1616,7 +1620,7 @@ Show parenthesis for Emacs
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'prog-mode-hook #'show-paren-mode)
|
||||
#+end_src
|
||||
** General Programming Configuration
|
||||
** Programming Configuration
|
||||
*** Eldoc
|
||||
Eldoc presents documentation to the user upon placing ones cursor upon
|
||||
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")
|
||||
'("Enter title: "
|
||||
"#+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"
|
||||
"#+options: toc:nil\n\n"
|
||||
"#+begin_center\n"
|
||||
|
||||
Reference in New Issue
Block a user