config/doom: add evil-gr & use use-package

This commit is contained in:
xerus2000 2021-02-23 20:15:42 +01:00
parent 06450573ad
commit 531877c8db
3 changed files with 40 additions and 24 deletions

View File

@ -131,31 +131,45 @@
(ct/org-foldup))) (ct/org-foldup)))
(define-key org-mode-map (kbd "S-<tab>") 'ct/org-shifttab) (define-key org-mode-map (kbd "S-<tab>") 'ct/org-shifttab)
;; PLANTUML ;; https://emacs.stackexchange.com/questions/16744/magit-help-popup-enabled-by-default
(defadvice magit-status (after my-magit-status-dispatch-popup)
(call-interactively 'magit-dispatch))
(ad-activate 'magit-status)
(setq plantuml-executable-path "nostderr" (use-package! direnv ; nix-shell stuffs
:config
(setq direnv-always-show-summary nil)
(direnv-mode)
)
(use-package! evil-replace-with-register ; gr
:init
(setq evil-replace-with-register-key (kbd "gr"))
(evil-replace-with-register-install)
:config
(map! :nv "gR" #'+eval/line-or-region)
)
(use-package! plantuml-mode ; Diagrams
:config
(setq plantuml-executable-path "nostderr"
plantuml-executable-args '("plantuml" "-headless") plantuml-executable-args '("plantuml" "-headless")
plantuml-default-exec-mode 'executable plantuml-default-exec-mode 'executable
plantuml-jar-path "/usr/share/java/plantuml/plantuml.jar" plantuml-jar-path "/usr/share/java/plantuml/plantuml.jar"
org-plantuml-jar-path plantuml-jar-path org-plantuml-jar-path plantuml-jar-path
plantuml-java-args '("-Djava.awt.headless=true" "-jar") plantuml-java-args '("-Djava.awt.headless=true" "-jar")
) )
(add-to-list 'org-src-lang-modes '("plantuml" . plantuml)) (add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
(with-eval-after-load 'org (with-eval-after-load 'org
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
'(other Babel languages '(other Babel languages
(plantuml . t) (plantuml . t)
))) )))
)
;; OTHERS (use-package! adoc-mode ; Asciidoc, a md alternative
(add-to-list 'auto-mode-alist (cons "\\.adoc\\'" 'adoc-mode)) :config
(add-to-list 'auto-mode-alist (cons "\\.adoc\\'" 'adoc-mode))
;; https://emacs.stackexchange.com/questions/16744/magit-help-popup-enabled-by-default )
(defadvice magit-status (after my-magit-status-dispatch-popup)
(magit-dispatch-popup))
(ad-activate 'magit-status)
;; Here are some additional functions/macros that could help you configure Doom: ;; Here are some additional functions/macros that could help you configure Doom:
;; ;;
;; - `load!' for loading external *.el files relative to this one ;; - `load!' for loading external *.el files relative to this one

View File

@ -52,8 +52,10 @@
(package! annotate) ; Annotations (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! plantuml-mode) ; Diagrams
(package! ox-reveal) ; Presentations (package! ox-reveal) ; Presentations
(package! direnv) ; nix-shell stuffs (package! direnv) ; nix-shell stuffs
(package! evil-replace-with-register) ; grrrrr
(package! plantuml-mode) ; Diagrams
(package! adoc-mode) ; Asciidoc, a md alternative (package! adoc-mode) ; Asciidoc, a md alternative
;(package! plantuml-mode :recipe (:local-repo "plantuml-mode"))

View File

@ -13,7 +13,7 @@ fi 2>/dev/null || return 0
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" # source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
#fi #fi
export PATH=$HOME/.local/bin/scripts:$HOME/.local/bin:$PATH:/opt/android/sdk/platform-tools export PATH=$HOME/.local/bin/scripts:$HOME/.local/bin:$PATH:/opt/android/sdk/platform-tools:$XDG_CONFIG_HOME/emacs/bin
export CONFIG_ZSH="$XDG_CONFIG_HOME/zsh" export CONFIG_ZSH="$XDG_CONFIG_HOME/zsh"
export CONFIG_SHELLS="$XDG_CONFIG_HOME/shell" export CONFIG_SHELLS="$XDG_CONFIG_HOME/shell"