diff options
author | mattkae <mattkae@protonmail.com> | 2022-10-14 08:56:28 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-10-14 08:56:28 -0400 |
commit | 4b547482a9102b0b42432d11d7995d75c02a51f7 (patch) | |
tree | 6708739af310a662dc546dcca7302c176e70e85d /lisp | |
parent | fb2062c19242355c88fc77b2c209319d6fd03d62 (diff) |
Shortcuts for file and directory creation
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/general.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/general.el b/lisp/general.el index 46cda44..21abf07 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -45,9 +45,8 @@ ;; Projectile for project navigation (require 'projectile) (projectile-mode +1) -(define-key projectile-mode-map (kbd "s-q") 'projectile-command-map) -(define-key projectile-mode-map (kbd "s-f") 'projectile-grep) -(define-key projectile-mode-map [?\s-t] 'projectile-switch-project) +(define-key projectile-mode-map (kbd "s-F") 'projectile-grep) +(define-key projectile-mode-map [?\s-o] 'projectile-switch-project) (define-key projectile-mode-map [?\s-p] 'projectile-find-file) ;; Ido mode text matching @@ -69,6 +68,8 @@ (evil-define-key 'normal neotree-mode-map (kbd "A") 'neotree-stretch-toggle) (evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle) +(add-hook 'after-save-hook 'neotree-refresh) + ;; Smooth scroll (setq redisplay-dont-pause t scroll-margin 7 @@ -100,7 +101,8 @@ (bind-key* (kbd "C-x C-f") 'counsel-find-file) (bind-key* (kbd "M-x") 'counsel-M-x) (bind-key* (kbd "C-;") 'neotree-toggle) -(bind-key* (kbd "M-F") 'projectile-grep) +(bind-key* (kbd "s-N") 'make-empty-file) +(bind-key* (kbd "s-D") 'make-directory) ;; Company mode for code completion (use-package company |