config/doom: better directory recognition

This commit is contained in:
xeruf 2024-02-20 19:23:40 +01:00
parent 99a13ed12a
commit b0803435b4
2 changed files with 3 additions and 3 deletions

View File

@ -982,8 +982,8 @@ This is 0.3 red + 0.59 green + 0.11 blue and always between 0 and 255."
(add-to-list 'auto-mode-alist '("\\.jrnl\\'" . org-mode))
(add-to-list 'auto-mode-alist '("\\.el##" . emacs-lisp-mode))
(add-to-list 'auto-mode-alist `(,(or (getenv "CONFIG_SHELLS") "~/.config/shell"). sh-mode))
(add-to-list 'auto-mode-alist `(,(or (getenv "CONFIG_ZSH") "~/.config/zsh") . sh-mode))
(add-to-list 'auto-mode-alist `(,(or (getenv "CONFIG_SHELLS") "\\.config/shell"). sh-mode))
(add-to-list 'auto-mode-alist `(,(or (getenv "CONFIG_ZSH") "\\.config/zsh") . sh-mode))
(add-to-list 'auto-mode-alist `("\\.local/bin" . sh-mode))
;(add-to-list 'auto-mode-alist '("\\.twee\\'" . twee-chapbook-mode))

View File

@ -22,7 +22,7 @@
;(directory-files-recursively (expand-file-name "project/" org-directory) ".org\\'")
;(list (expand-file-name "inbox/"))
(list (expand-file-name "agenda/"))
(list (expand-file-name "uni/"))
(directory-files-recursively (expand-file-name "uni/" org-directory) ".org\\'")
))
))