aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2020-03-02 23:14:51 +0000
committerAChavali <aryadevchavali1@gmail.com>2020-03-02 23:14:51 +0000
commit5ee6c267a98ad873f15187a87247a93de873c5bd (patch)
treec13b5c368236d52318ff1cdcd6b767d3a6630ad9 /doom.d/modules
parent84755d4e42372de9f59e14d7d8d4a53d230dcf01 (diff)
downloaddotfiles-5ee6c267a98ad873f15187a87247a93de873c5bd.tar.gz
dotfiles-5ee6c267a98ad873f15187a87247a93de873c5bd.tar.bz2
dotfiles-5ee6c267a98ad873f15187a87247a93de873c5bd.zip
+goto-dotfiles function
Code cleanliness
Diffstat (limited to 'doom.d/modules')
-rw-r--r--doom.d/modules/config.org8
-rw-r--r--doom.d/modules/personal.org10
2 files changed, 16 insertions, 2 deletions
diff --git a/doom.d/modules/config.org b/doom.d/modules/config.org
index 1b68be4..3a5ac96 100644
--- a/doom.d/modules/config.org
+++ b/doom.d/modules/config.org
@@ -38,7 +38,6 @@ Some quality of life things and others that I couldn't really put in one categor
- Set org directory
- Add libgen to search providers
- Looking at my battery percentage isn't very necessary but still really cool
-*
* Package Config
** Projectile
Really simple, just want to set projectile-tags-command when projectile has
@@ -136,7 +135,10 @@ If RETURN-P, return the message as a string instead of displaying it."
:action oreodave/weather)
("Jump to bookmark"
:icon (all-the-icons-octicon "bookmark" :face 'font-lock-keyword-face)
- :action bookmark-jump)))
+ :action bookmark-jump)
+ ("Open private config"
+ :icon (all-the-icons-octicon "file-directory" :face 'font-lock-keyword-face)
+ :action oreodave/goto-dotfiles)))
#+END_SRC
- Space image comes from [[https://flaticon.com][website]]
@@ -464,6 +466,8 @@ General keymap for leader
:desc "Shell command" "!" #'shell-command ; Better than M-!
(:prefix ("b" . "buffers") ; Buffers
:desc "Close buffer" "d" #'doom/kill-this-buffer-in-all-windows)
+ (:prefix ("f" . "files")
+ :desc "Open dotfiles" "p" #'oreodave/goto-dotfiles)
(:prefix ("o" . "open")
:after org
:desc "Calendar" "c" #'=calendar)
diff --git a/doom.d/modules/personal.org b/doom.d/modules/personal.org
index 0a209c6..e5a75ed 100644
--- a/doom.d/modules/personal.org
+++ b/doom.d/modules/personal.org
@@ -64,3 +64,13 @@ Function to quickly check weather, which is what I wanted wttrin for.
(interactive)
(wttrin (oreodave/password-store/get-password "location")))
#+END_SRC
+* Go to dotfiles
+A better version of 'goto private directory' which actually goes to my Dot files
+directory overall.
+
+#+BEGIN_SRC elisp
+(defun oreodave/goto-dotfiles ()
+ "Go to the dotfiles directory"
+ (interactive)
+ (doom-project-find-file "~/Dotfiles"))
+#+END_SRC