dotfiles/.emacs.d/functions.el
2023-01-17 17:51:23 +00:00

19 lines
476 B
EmacsLisp

(defun me/org-mode ()
"My custom configuration for 'org-mode'."
(olivetti-mode)
(olivetti-set-width 80)
(company-mode -1)
(setq cursor-type 'bar)
)
(add-hook 'org-mode-hook 'me/org-mode)
(defun me/write ()
(get-buffer-create "*Writing Mode*")
(switch-to-buffer "*Writing Mode*")
(org-mode))
(setq-default
functions-file (concat (or (getenv "XDG_CONFIG_HOME") "~/.emacs.d/") "kustomize.el"))
(when (file-exists-p functions-file)
(load functions-file))