Temporarily enable evil-mode for experimentation
This commit is contained in:
parent
55cff4b52b
commit
7185753421
2 changed files with 28 additions and 4 deletions
26
emacs.el
26
emacs.el
|
@ -238,6 +238,7 @@
|
||||||
|
|
||||||
(use-package consult)
|
(use-package consult)
|
||||||
(global-set-key (kbd "M-s r") 'consult-ripgrep)
|
(global-set-key (kbd "M-s r") 'consult-ripgrep)
|
||||||
|
(setq completion-in-region-function 'consult-completion-in-region)
|
||||||
|
|
||||||
;; Navigation when in russian layout
|
;; Navigation when in russian layout
|
||||||
|
|
||||||
|
@ -270,6 +271,20 @@
|
||||||
|
|
||||||
(setq-default bidi-display-reordering nil)
|
(setq-default bidi-display-reordering nil)
|
||||||
|
|
||||||
|
;; -------- Evil mode --------
|
||||||
|
|
||||||
|
;; Evil mode is a vi/vim compatibility layer for Emacs that provides roughly
|
||||||
|
;; equivalent keybindings for editing.
|
||||||
|
|
||||||
|
(setq evil-want-keybinding nil)
|
||||||
|
(setq evil-want-C-u-scroll t)
|
||||||
|
(use-package evil)
|
||||||
|
(use-package evil-collection)
|
||||||
|
(add-hook 'after-init-hook #'(lambda ()
|
||||||
|
(evil-mode 1)
|
||||||
|
(evil-set-undo-system 'undo-redo)
|
||||||
|
(evil-collection-init)))
|
||||||
|
|
||||||
;; -------- Tools and environment --------
|
;; -------- Tools and environment --------
|
||||||
|
|
||||||
;; By default, Emacs doesn't add system path to its search places
|
;; By default, Emacs doesn't add system path to its search places
|
||||||
|
@ -307,10 +322,19 @@ Enable org-roam
|
||||||
" t nil)
|
" t nil)
|
||||||
|
|
||||||
(setq org-roam-capture-templates
|
(setq org-roam-capture-templates
|
||||||
`(("d" "default" plain "%?"
|
`(
|
||||||
|
("d" "default" plain "%?"
|
||||||
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
|
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
|
||||||
"#+title: ${title}\n")
|
"#+title: ${title}\n")
|
||||||
:unnarrowed t)
|
:unnarrowed t)
|
||||||
|
("p" "post" plain "%?"
|
||||||
|
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
|
||||||
|
,(concat "#+date: %<%Y-%m-%dT%H:%M:%S>Z\n"
|
||||||
|
"#+slug: ${slug}\n"
|
||||||
|
"#+title: ${title}\n"
|
||||||
|
"#+filetags: Post\n"
|
||||||
|
"\n"))
|
||||||
|
:unnarrowed t)
|
||||||
("i" "interview" plain "%?"
|
("i" "interview" plain "%?"
|
||||||
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
|
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
|
||||||
,(concat "#+title: ${title}\n"
|
,(concat "#+title: ${title}\n"
|
||||||
|
|
|
@ -67,11 +67,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1691005674,
|
"lastModified": 1691271263,
|
||||||
"narHash": "sha256-81Z0ytKtBPxIyE3WebRkFXwsRjZGOg7a5VwmHMY/EAY=",
|
"narHash": "sha256-ug+HYWVjjRoSLauLHwCJfqwbW52wfTt3aRi32vZGO2I=",
|
||||||
"owner": "~knazarov",
|
"owner": "~knazarov",
|
||||||
"repo": "knazarov.com",
|
"repo": "knazarov.com",
|
||||||
"rev": "0aa3167e06a353d25debf493a6d4c1c61796a080",
|
"rev": "ae2f5203317748f5d3c33fff9c069c479aeca819",
|
||||||
"type": "sourcehut"
|
"type": "sourcehut"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Reference in a new issue