Reorganize files to use stow for installation #dotfiles
This commit is contained in:
34
emacs/.config/doom/autoload/hlissner.el
Normal file
34
emacs/.config/doom/autoload/hlissner.el
Normal file
@ -0,0 +1,34 @@
|
||||
;;; 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"))))))
|
||||
Reference in New Issue
Block a user