config/doom: add evil-gr & use use-package
This commit is contained in:
parent
06450573ad
commit
531877c8db
|
@ -131,31 +131,45 @@
|
|||
(ct/org-foldup)))
|
||||
(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-default-exec-mode 'executable
|
||||
plantuml-jar-path "/usr/share/java/plantuml/plantuml.jar"
|
||||
org-plantuml-jar-path plantuml-jar-path
|
||||
plantuml-java-args '("-Djava.awt.headless=true" "-jar")
|
||||
)
|
||||
(add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
|
||||
(with-eval-after-load 'org
|
||||
(org-babel-do-load-languages
|
||||
(add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
|
||||
(with-eval-after-load 'org
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'(other Babel languages
|
||||
(plantuml . t)
|
||||
)))
|
||||
|
||||
;; OTHERS
|
||||
(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)
|
||||
|
||||
)
|
||||
(use-package! adoc-mode ; Asciidoc, a md alternative
|
||||
:config
|
||||
(add-to-list 'auto-mode-alist (cons "\\.adoc\\'" 'adoc-mode))
|
||||
)
|
||||
;; Here are some additional functions/macros that could help you configure Doom:
|
||||
;;
|
||||
;; - `load!' for loading external *.el files relative to this one
|
||||
|
|
|
@ -52,8 +52,10 @@
|
|||
(package! annotate) ; Annotations
|
||||
(package! visual-fill-column) ; Soft line wrapping at character count
|
||||
(package! togetherly) ; Collaborative editing
|
||||
(package! plantuml-mode) ; Diagrams
|
||||
(package! ox-reveal) ; Presentations
|
||||
|
||||
(package! direnv) ; nix-shell stuffs
|
||||
(package! evil-replace-with-register) ; grrrrr
|
||||
|
||||
(package! plantuml-mode) ; Diagrams
|
||||
(package! adoc-mode) ; Asciidoc, a md alternative
|
||||
;(package! plantuml-mode :recipe (:local-repo "plantuml-mode"))
|
||||
|
|
|
@ -13,7 +13,7 @@ fi 2>/dev/null || return 0
|
|||
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
#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_SHELLS="$XDG_CONFIG_HOME/shell"
|
||||
|
|
Loading…
Reference in New Issue