config/doom: add evil-args
This commit is contained in:
parent
0997203052
commit
45a796774e
|
@ -105,6 +105,9 @@
|
||||||
(directory . emacs)
|
(directory . emacs)
|
||||||
(system . "setsid -w xdg-open %s")
|
(system . "setsid -w xdg-open %s")
|
||||||
(t . system)))
|
(t . system)))
|
||||||
|
;; https://discord.com/channels/406534637242810369/406554085794381833/814175445004189706
|
||||||
|
;(after! org
|
||||||
|
; (add-to-list 'org-file-apps '(system . "setsid -w xdg-open %s"))
|
||||||
|
|
||||||
;; org toggle source blocks with C-c t
|
;; org toggle source blocks with C-c t
|
||||||
(defvar org-blocks-hidden nil)
|
(defvar org-blocks-hidden nil)
|
||||||
|
@ -142,11 +145,6 @@
|
||||||
(call-interactively 'magit-dispatch))
|
(call-interactively 'magit-dispatch))
|
||||||
(ad-activate 'magit-status)
|
(ad-activate 'magit-status)
|
||||||
|
|
||||||
(use-package! direnv ; nix-shell stuffs
|
|
||||||
:config
|
|
||||||
(setq direnv-always-show-summary nil)
|
|
||||||
(direnv-mode)
|
|
||||||
)
|
|
||||||
(use-package! evil-replace-with-register ; gr
|
(use-package! evil-replace-with-register ; gr
|
||||||
:init
|
:init
|
||||||
(setq evil-replace-with-register-key (kbd "gr"))
|
(setq evil-replace-with-register-key (kbd "gr"))
|
||||||
|
@ -154,7 +152,27 @@
|
||||||
:config
|
:config
|
||||||
(map! :nv "gR" #'+eval/line-or-region)
|
(map! :nv "gR" #'+eval/line-or-region)
|
||||||
)
|
)
|
||||||
|
(use-package! evil-args ; https://github.com/wcsmith/evil-args
|
||||||
|
:config
|
||||||
|
;; bind evil-args text objects
|
||||||
|
(define-key evil-inner-text-objects-map "a" 'evil-inner-arg)
|
||||||
|
(define-key evil-outer-text-objects-map "a" 'evil-outer-arg)
|
||||||
|
|
||||||
|
;; bind evil-forward/backward-args
|
||||||
|
(define-key evil-normal-state-map "L" 'evil-forward-arg)
|
||||||
|
(define-key evil-normal-state-map "H" 'evil-backward-arg)
|
||||||
|
(define-key evil-motion-state-map "L" 'evil-forward-arg)
|
||||||
|
(define-key evil-motion-state-map "H" 'evil-backward-arg)
|
||||||
|
|
||||||
|
;; bind evil-jump-out-args
|
||||||
|
(define-key evil-normal-state-map "K" 'evil-jump-out-args)
|
||||||
|
)
|
||||||
|
|
||||||
|
(use-package! direnv ; nix-shell stuffs
|
||||||
|
:config
|
||||||
|
(setq direnv-always-show-summary nil)
|
||||||
|
(direnv-mode)
|
||||||
|
)
|
||||||
(use-package! plantuml-mode ; Diagrams
|
(use-package! plantuml-mode ; Diagrams
|
||||||
:config
|
:config
|
||||||
(setq plantuml-executable-path "nostderr"
|
(setq plantuml-executable-path "nostderr"
|
||||||
|
|
|
@ -54,8 +54,9 @@
|
||||||
(package! togetherly) ; Collaborative editing
|
(package! togetherly) ; Collaborative editing
|
||||||
(package! ox-reveal) ; Presentations
|
(package! ox-reveal) ; Presentations
|
||||||
|
|
||||||
(package! direnv) ; nix-shell stuffs
|
(package! evil-args) ; motions in args
|
||||||
(package! evil-replace-with-register) ; grrrrr
|
(package! evil-replace-with-register) ; grrrrr
|
||||||
|
|
||||||
|
(package! direnv) ; nix-shell stuffs
|
||||||
(package! plantuml-mode) ; Diagrams
|
(package! plantuml-mode) ; Diagrams
|
||||||
(package! adoc-mode) ; Asciidoc, a md alternative
|
(package! adoc-mode) ; Asciidoc, a md alternative
|
||||||
|
|
Loading…
Reference in New Issue