config/doom: remove annotate-mode & update mappings

This commit is contained in:
xerus2000 2021-04-07 20:27:22 +02:00
parent 2fe72715d6
commit 4b8b4d1725
2 changed files with 20 additions and 6 deletions

View File

@ -48,8 +48,6 @@
(map! :leader "u" 'evil-prev-buffer (map! :leader "u" 'evil-prev-buffer
:leader "i" 'evil-next-buffer :leader "i" 'evil-next-buffer
:leader "bq" 'doom/save-and-kill-buffer :leader "bq" 'doom/save-and-kill-buffer
:leader "aa" 'annotate-annotate
:leader "as" 'annotate-mode
:leader "d" 'dragon :leader "d" 'dragon
;; Buffer-local font resizing ;; Buffer-local font resizing
:n "M-C-=" 'text-scale-increase :n "M-C-=" 'text-scale-increase
@ -139,10 +137,16 @@
(let ((current-prefix-arg '(7))) (call-interactively 'org-timestamp-up-day)) (let ((current-prefix-arg '(7))) (call-interactively 'org-timestamp-up-day))
) )
(defun org-export-repeat ()
(interactive)
(let ((current-prefix-arg '(4))) (call-interactively 'org-export-dispatch))
)
(map! :map org-mode-map (map! :map org-mode-map
:localleader :localleader
"j" 'org-insert-heading "j" 'org-insert-heading
"t" 'org-todo-or-insert "t" 'org-todo-or-insert
"E" 'org-export-repeat
"d=" 'org-timestamp-up-week "d=" 'org-timestamp-up-week
"rt" 'org-todo-region "rt" 'org-todo-region
"ra" 'org-change-tag-in-region "ra" 'org-change-tag-in-region
@ -239,8 +243,15 @@
(setq evil-replace-with-register-key (kbd "gr")) (setq evil-replace-with-register-key (kbd "gr"))
(evil-replace-with-register-install) (evil-replace-with-register-install)
:config :config
(map! :nv "gR" #'+eval/line-or-region) (defun eval-paragraph ()
(interactive)
(er/mark-paragraph)
(call-interactively '+eval:region)
)
(map! :n "gR" 'eval-paragraph
:v "gR" '+eval/region)
) )
(use-package! evil-args ; https://github.com/wcsmith/evil-args (use-package! evil-args ; https://github.com/wcsmith/evil-args
:config :config
;; bind evil-args text objects ;; bind evil-args text objects

View File

@ -51,12 +51,15 @@
(package! evil-args) ; motions in args (package! evil-args) ; motions in args
(package! evil-replace-with-register) ; grrrrr (package! evil-replace-with-register) ; grrrrr
(package! evil-better-visual-line) (package! evil-better-visual-line) ; not sure if this actually helps
(package! annotate) ; Annotations
(package! visual-fill-column) ; Soft line wrapping at character count (package! visual-fill-column) ; Soft line wrapping at character count
(package! togetherly) ; Collaborative editing (package! togetherly) ; Collaborative editing
(package! direnv) ; nix-shell stuffs (package! direnv) ; directory-local environment for haskell-nix things
(package! plantuml-mode) ; Diagrams (package! plantuml-mode) ; Diagrams
(package! adoc-mode) ; Asciidoc, a md alternative (package! adoc-mode) ; Asciidoc, a md alternative
;(package! annotate) ; Annotations
; :leader "aa" 'annotate-annotate
; :leader "as" 'annotate-mode