Move +default/{find-in,browse}-emacsd to core lib
Renamed them to: + doom/find-file-in-emacsd + doom/browse-in-emacsd
This commit is contained in:
parent
892493741f
commit
03fe396eea
5 changed files with 14 additions and 15 deletions
|
@ -56,6 +56,16 @@ they are absolute."
|
||||||
(error "Project directory '%s' doesn't exist" project-root))
|
(error "Project directory '%s' doesn't exist" project-root))
|
||||||
(doom-project-browse project-root))
|
(doom-project-browse project-root))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/browse-in-emacsd ()
|
||||||
|
"Browse files from `doom-emacs-dir'."
|
||||||
|
(interactive) (doom-project-browse doom-emacs-dir))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/find-file-in-emacsd ()
|
||||||
|
"Find a file under `doom-emacs-dir', recursively."
|
||||||
|
(interactive) (doom-project-find-file doom-emacs-dir))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Library
|
;;; Library
|
||||||
|
|
|
@ -66,8 +66,8 @@
|
||||||
:desc "Copy this file" "C" #'doom/copy-this-file
|
:desc "Copy this file" "C" #'doom/copy-this-file
|
||||||
:desc "Find directory" "d" #'dired
|
:desc "Find directory" "d" #'dired
|
||||||
:desc "Delete this file" "D" #'doom/delete-this-file
|
:desc "Delete this file" "D" #'doom/delete-this-file
|
||||||
:desc "Find file in emacs.d" "e" #'+default/find-in-emacsd
|
:desc "Find file in emacs.d" "e" #'doom/find-file-in-emacsd
|
||||||
:desc "Browse emacs.d" "E" #'+default/browse-emacsd
|
:desc "Browse emacs.d" "E" #'doom/browse-in-emacsd
|
||||||
:desc "Find file" "f" #'find-file
|
:desc "Find file" "f" #'find-file
|
||||||
:desc "Find file from here" "F" #'+default/find-file-under-here
|
:desc "Find file from here" "F" #'+default/find-file-under-here
|
||||||
:desc "Locate file" "l" #'locate
|
:desc "Locate file" "l" #'locate
|
||||||
|
|
|
@ -379,8 +379,8 @@
|
||||||
:desc "Copy this file" "C" #'doom/copy-this-file
|
:desc "Copy this file" "C" #'doom/copy-this-file
|
||||||
:desc "Find directory" "d" #'+default/dired
|
:desc "Find directory" "d" #'+default/dired
|
||||||
:desc "Delete this file" "D" #'doom/delete-this-file
|
:desc "Delete this file" "D" #'doom/delete-this-file
|
||||||
:desc "Find file in emacs.d" "e" #'+default/find-in-emacsd
|
:desc "Find file in emacs.d" "e" #'doom/find-file-in-emacsd
|
||||||
:desc "Browse emacs.d" "E" #'+default/browse-emacsd
|
:desc "Browse emacs.d" "E" #'doom/browse-in-emacsd
|
||||||
:desc "Find file" "f" #'find-file
|
:desc "Find file" "f" #'find-file
|
||||||
:desc "Find file from here" "F" #'+default/find-file-under-here
|
:desc "Find file from here" "F" #'+default/find-file-under-here
|
||||||
:desc "Locate file" "l" #'locate
|
:desc "Locate file" "l" #'locate
|
||||||
|
|
|
@ -36,8 +36,6 @@ That's fine. All evil configuration is ignored if =:editor evil= is disabled.
|
||||||
+ ~+default/browse-project~
|
+ ~+default/browse-project~
|
||||||
+ ~+default/browse-templates~
|
+ ~+default/browse-templates~
|
||||||
+ ~+default/find-in-templates~
|
+ ~+default/find-in-templates~
|
||||||
+ ~+default/browse-emacsd~
|
|
||||||
+ ~+default/find-in-emacsd~
|
|
||||||
+ ~+default/browse-notes~
|
+ ~+default/browse-notes~
|
||||||
+ ~+default/find-in-notes~
|
+ ~+default/find-in-notes~
|
||||||
+ ~+default/find-in-snippets~
|
+ ~+default/find-in-snippets~
|
||||||
|
|
|
@ -15,15 +15,6 @@
|
||||||
"Find a file under `+file-templates-dir', recursively."
|
"Find a file under `+file-templates-dir', recursively."
|
||||||
(interactive) (doom-project-find-file +file-templates-dir))
|
(interactive) (doom-project-find-file +file-templates-dir))
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defun +default/browse-emacsd ()
|
|
||||||
"Browse files from `doom-emacs-dir'."
|
|
||||||
(interactive) (doom-project-browse doom-emacs-dir))
|
|
||||||
;;;###autoload
|
|
||||||
(defun +default/find-in-emacsd ()
|
|
||||||
"Find a file under `doom-emacs-dir', recursively."
|
|
||||||
(interactive) (doom-project-find-file doom-emacs-dir))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +default/browse-notes ()
|
(defun +default/browse-notes ()
|
||||||
"Browse files from `org-directory'."
|
"Browse files from `org-directory'."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue