config/doom: improve for ruby and emacsclient usage
This commit is contained in:
parent
a4be3fd82a
commit
e98754a1e0
|
@ -18,10 +18,13 @@
|
||||||
;; There are two ways to load a theme. Both assume the theme is installed and
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
;; `load-theme' function. This is the default:
|
;; `load-theme' function. This is the default:
|
||||||
(setq doom-theme 'doom-one
|
(setq doom-theme (if (equal (getenv "THEME") "light") 'doom-one-light 'doom-one)
|
||||||
doom-font (font-spec :family "monospace" :size 24 :weight 'semi-light)
|
doom-font (font-spec :family "monospace" :size 24 :weight 'semi-light)
|
||||||
doom-variable-pitch-font (font-spec :family "sans" :size 24))
|
doom-variable-pitch-font (font-spec :family "sans" :size 24))
|
||||||
|
|
||||||
|
; TODO how to treat sequencep as string? - theme toggle
|
||||||
|
;(s-chop-suffixes '("-light" "-dark") doom-theme)
|
||||||
|
|
||||||
(setq display-line-numbers-type 'relative
|
(setq display-line-numbers-type 'relative
|
||||||
scroll-margin 6
|
scroll-margin 6
|
||||||
hscroll-margin 20
|
hscroll-margin 20
|
||||||
|
@ -123,7 +126,12 @@ Version 2019-11-04 2021-02-16"
|
||||||
|
|
||||||
(setq initial-major-mode 'org-mode)
|
(setq initial-major-mode 'org-mode)
|
||||||
(add-to-list 'auto-mode-alist '("/journal/" . org-mode))
|
(add-to-list 'auto-mode-alist '("/journal/" . org-mode))
|
||||||
|
(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 '("\\.el##" . emacs-lisp-mode))
|
||||||
|
(add-to-list 'auto-mode-alist `(,(getenv "CONFIG_SHELLS") . sh-mode))
|
||||||
|
(add-to-list 'auto-mode-alist `(,(getenv "CONFIG_ZSH") . sh-mode))
|
||||||
|
(add-to-list 'auto-mode-alist `("\\.local/bin" . sh-mode))
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.twee\\'" . twee-chapbook-mode))
|
(add-to-list 'auto-mode-alist '("\\.twee\\'" . twee-chapbook-mode))
|
||||||
(add-hook 'twee-chapbook-mode-hook 'twee-mode)
|
(add-hook 'twee-chapbook-mode-hook 'twee-mode)
|
||||||
|
@ -285,8 +293,9 @@ Version 2019-11-04 2021-02-16"
|
||||||
(substring id 0 2)
|
(substring id 0 2)
|
||||||
(if (> (seq-length id) 2) (substring id 2) id))
|
(if (> (seq-length id) 2) (substring id 2) id))
|
||||||
)
|
)
|
||||||
(setq org-attach-id-dir (expand-file-name "attach" (xdg-user-dir "DOCUMENTS"))
|
(unless (file-exists-p org-attach-id-dir)
|
||||||
org-attach-method 'mv
|
(setq org-attach-id-dir (expand-file-name "attach" (xdg-user-dir "DOCUMENTS"))))
|
||||||
|
(setq org-attach-method 'mv
|
||||||
org-attach-preferred-new-method nil
|
org-attach-preferred-new-method nil
|
||||||
org-attach-id-to-path-function-list '(xf/org-attach-id-folder-format)
|
org-attach-id-to-path-function-list '(xf/org-attach-id-folder-format)
|
||||||
)
|
)
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
;;raku ; the artist formerly known as perl6
|
;;raku ; the artist formerly known as perl6
|
||||||
;;rest ; Emacs as a REST client
|
;;rest ; Emacs as a REST client
|
||||||
rst ; ReST in peace
|
rst ; ReST in peace
|
||||||
(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
(ruby +rails +lsp) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||||
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||||
;;scala ; java, but good
|
;;scala ; java, but good
|
||||||
;;scheme ; a fully conniving family of lisps
|
;;scheme ; a fully conniving family of lisps
|
||||||
|
|
|
@ -68,6 +68,8 @@
|
||||||
(package! togetherly) ; Collaborative editing
|
(package! togetherly) ; Collaborative editing
|
||||||
(package! direnv) ; directory-local environment for haskell-nix things
|
(package! direnv) ; directory-local environment for haskell-nix things
|
||||||
|
|
||||||
|
(package! haml-mode)
|
||||||
|
|
||||||
(package! adoc-mode) ; Asciidoc, a md alternative
|
(package! adoc-mode) ; Asciidoc, a md alternative
|
||||||
(package! nov) ; epub reader
|
(package! nov) ; epub reader
|
||||||
(package! pkgbuild-mode) ; AUR PKGBUILDs
|
(package! pkgbuild-mode) ; AUR PKGBUILDs
|
||||||
|
|
|
@ -11,12 +11,16 @@
|
||||||
org-roam-directory org-directory
|
org-roam-directory org-directory
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
|
(setq org-attach-id-dir (expand-file-name "3-dox/attach" user-data-dir))
|
||||||
(if (and org-directory (file-exists-p org-directory))
|
(if (and org-directory (file-exists-p org-directory))
|
||||||
(setq default-directory org-directory
|
(progn
|
||||||
org-agenda-files (append
|
(if (file-equal-p command-line-default-directory "~")
|
||||||
(directory-files-recursively (expand-file-name "project/") "\\`[^.]*\\'" 't)
|
(setq default-directory org-directory))
|
||||||
|
(setq org-agenda-files (append
|
||||||
|
(directory-files-recursively (expand-file-name "project/" org-directory) "\\`[^.]*\\'" 't)
|
||||||
(list (expand-file-name "inbox/"))
|
(list (expand-file-name "inbox/"))
|
||||||
)))
|
))
|
||||||
|
))
|
||||||
|
|
||||||
(use-package! recentf
|
(use-package! recentf
|
||||||
:config
|
:config
|
||||||
|
|
Loading…
Reference in New Issue