[emacs] Move to .doom.d config file

This commit is contained in:
2020-09-25 22:11:58 -04:00
parent 8da4c6e41b
commit 708bf56f90
12 changed files with 434 additions and 20 deletions

View File

@ -1,34 +0,0 @@
;;; private/hlissner/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +hlissner/find-in-dotfiles ()
"Open a file somewhere in ~/.dotfiles via a fuzzy filename search."
(interactive)
(doom-project-find-file (expand-file-name "~/.dotfiles")))
;;;###autoload
(defun +hlissner/browse-dotfiles ()
"Browse the files in ~/.dotfiles."
(interactive)
(doom-project-browse (expand-file-name "~/.dotfiles")))
;;;###autoload
(defun +hlissner/find-notes-for-major-mode (&optional arg)
"TODO"
(interactive "P")
(let ((default-directory (expand-file-name "code/" +org-dir)))
(if arg
(call-interactively #'find-file)
(find-file
(expand-file-name (concat (string-remove-suffix "-mode" (symbol-name major-mode)) ".org"))))))
;;;###autoload
(defun +hlissner/find-notes-for-project (&optional arg)
"TODO"
(interactive "P")
(let ((project-root (doom-project-name 'nocache))
(default-directory (expand-file-name "projects/" +org-dir)))
(if arg
(call-interactively #'find-file)
(find-file
(expand-file-name (concat project-root ".org"))))))