config/doom: adjustments, add tilde to evil-surround
This commit is contained in:
parent
00b1f35572
commit
856b33132b
|
@ -225,7 +225,7 @@ Version 2019-11-04 2021-02-16"
|
||||||
time-stamp-end "$")
|
time-stamp-end "$")
|
||||||
:hook before-save)
|
:hook before-save)
|
||||||
|
|
||||||
(setq image-file-name-regexps "/preview/")
|
;(setq image-file-name-regexps "/preview/")
|
||||||
;(add-to-list 'image-file-name-regexps "/preview/")
|
;(add-to-list 'image-file-name-regexps "/preview/")
|
||||||
|
|
||||||
;;;; ORG
|
;;;; ORG
|
||||||
|
@ -726,7 +726,23 @@ Version 2019-11-04 2021-02-16"
|
||||||
(use-package! evil
|
(use-package! evil
|
||||||
:ensure t
|
:ensure t
|
||||||
:init (setq evil-respect-visual-line-mode nil)
|
:init (setq evil-respect-visual-line-mode nil)
|
||||||
:config (evil-set-register ?i "yiwjgriw")
|
:config
|
||||||
|
(evil-set-register ?i "yiwjgriw") ; copy current word and replace down
|
||||||
|
(after! evil-surround
|
||||||
|
(setq-default evil-embrace-evil-surround-keys (-union evil-embrace-evil-surround-keys '(?` ?~ ?\~)))
|
||||||
|
;; TILDE https://github.com/emacs-evil/evil-surround/issues/20#issuecomment-471516289
|
||||||
|
(defmacro define-and-bind-quoted-text-object (name key start-regex end-regex)
|
||||||
|
(let ((inner-name (make-symbol (concat "evil-inner-" name)))
|
||||||
|
(outer-name (make-symbol (concat "evil-a-" name))))
|
||||||
|
`(progn
|
||||||
|
(evil-define-text-object ,inner-name (count &optional beg end type)
|
||||||
|
(evil-select-paren ,start-regex ,end-regex beg end type count nil))
|
||||||
|
(evil-define-text-object ,outer-name (count &optional beg end type)
|
||||||
|
(evil-select-paren ,start-regex ,end-regex beg end type count t))
|
||||||
|
(define-key evil-inner-text-objects-map ,key #',inner-name)
|
||||||
|
(define-key evil-outer-text-objects-map ,key #',outer-name))))
|
||||||
|
(define-and-bind-quoted-text-object "tilde" "~" "~" "~")
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package! evil-replace-with-register ; gr
|
(use-package! evil-replace-with-register ; gr
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
# --
|
# --
|
||||||
@startuml
|
@startuml
|
||||||
hide empty description
|
hide empty description
|
||||||
'!theme bluegray 'organigram
|
'!theme reddress-lightblue
|
||||||
'!theme sandstone
|
'!theme bluegray 'organigram-lightblue
|
||||||
'!theme blueprint 'class
|
'!theme sandstone 'class-mediumblue
|
||||||
'!theme reddress-lightblue 'class
|
'!theme blueprint 'class-darkblue
|
||||||
'top to bottom direction
|
'top to bottom direction
|
||||||
$0
|
$0
|
||||||
@enduml
|
@enduml
|
Loading…
Reference in New Issue