config/doom: add adoc-mode

This commit is contained in:
xerus2000 2021-02-22 19:11:32 +01:00
parent 77d2e70003
commit 06450573ad
2 changed files with 10 additions and 3 deletions

View File

@ -25,7 +25,7 @@
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme 'doom-one
doom-font (font-spec :family "Fira Code" :size 26 :weight 'semi-light)
doom-font (font-spec :family "Fira Code" :size 30 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "sans" :size 28))
(setq display-line-numbers-type 'relative)
@ -97,9 +97,8 @@
(setq org-export-with-tasks nil)
; Org startup - https://orgmode.org/manual/In_002dbuffer-Settings.html
(setq org-startup-folded t)
(setq org-startup-folded 'show2levels)
(setq org-startup-with-inline-images t)
; (add-hook 'org-mode-hook (apply-partially '+org/close-all-folds 2))
;; org toggle source blocks with C-c t
(defvar org-blocks-hidden nil)
@ -149,6 +148,13 @@
(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)
;; Here are some additional functions/macros that could help you configure Doom:
;;

View File

@ -55,4 +55,5 @@
(package! plantuml-mode) ; Diagrams
(package! ox-reveal) ; Presentations
(package! direnv) ; nix-shell stuffs
(package! adoc-mode) ; Asciidoc, a md alternative
;(package! plantuml-mode :recipe (:local-repo "plantuml-mode"))