forked from colonelpanic/dotfiles
prefix argument projectile find file now opens in other window (C-c p f)
This commit is contained in:
parent
e337f7107d
commit
40b2c956a2
@ -1312,7 +1312,7 @@ window is active in the perspective."
|
|||||||
(expand-file-name
|
(expand-file-name
|
||||||
(concat directory "/"
|
(concat directory "/"
|
||||||
(nth 0 file-info) "/.projectile"))))))
|
(nth 0 file-info) "/.projectile"))))))
|
||||||
(defun do-ag (&optional arg)
|
(defun imalison:do-ag (&optional arg)
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(if arg (helm-do-ag) (helm-projectile-ag)))
|
(if arg (helm-do-ag) (helm-projectile-ag)))
|
||||||
(projectile-global-mode)
|
(projectile-global-mode)
|
||||||
@ -1324,8 +1324,16 @@ window is active in the perspective."
|
|||||||
(unbind-key "C-c p s g" projectile-command-map)
|
(unbind-key "C-c p s g" projectile-command-map)
|
||||||
(unbind-key "C-c p s s" projectile-command-map)
|
(unbind-key "C-c p s s" projectile-command-map)
|
||||||
(unbind-key "C-c p s" projectile-command-map)
|
(unbind-key "C-c p s" projectile-command-map)
|
||||||
(bind-key* "C-c p s" 'do-ag))
|
(unbind-key "C-c p f" projectile-command-map)
|
||||||
:bind (("C-x f" . projectile-find-file-in-known-projects))
|
(bind-key* "C-c p s" 'imalison:do-ag)
|
||||||
|
(bind-key* "C-c p f" 'imalison:projectile-find-file)
|
||||||
|
(defun imalison:projectile-find-file (arg)
|
||||||
|
(interactive "P")
|
||||||
|
(if arg
|
||||||
|
(projectile-find-file-other-window)
|
||||||
|
(projectile-find-file))))
|
||||||
|
:bind (("C-x f" . projectile-find-file-in-known-projects)
|
||||||
|
("C-c p f" . imalison:projectile-find-file))
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(use-package persp-projectile
|
(use-package persp-projectile
|
||||||
@ -1333,8 +1341,7 @@ window is active in the perspective."
|
|||||||
:commands projectile-persp-switch-project)
|
:commands projectile-persp-switch-project)
|
||||||
(use-package helm-projectile
|
(use-package helm-projectile
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands (helm-projectile-on)
|
:commands (helm-projectile-on))))
|
||||||
:defer t)))
|
|
||||||
|
|
||||||
(use-package smex
|
(use-package smex
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -1528,19 +1535,21 @@ window is active in the perspective."
|
|||||||
(setq android-mode-sdk-dir
|
(setq android-mode-sdk-dir
|
||||||
(s-trim (shell-command-to-string "android_sdk_directory")))))
|
(s-trim (shell-command-to-string "android_sdk_directory")))))
|
||||||
|
|
||||||
|
(use-package gradle-mode :ensure t)
|
||||||
|
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
;; JavaScript
|
;; JavaScript
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
|
|
||||||
(use-package js2-mode
|
(use-package js2-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands (js-mode)
|
:commands (js2-mode)
|
||||||
:mode "\\.js\\'"
|
:mode "\\.js\\'"
|
||||||
:bind
|
:bind
|
||||||
(("C-c b" . web-beautify-js))
|
(("C-c b" . web-beautify-js))
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(setq js2-bounce-indent-p t)
|
(setq js2-bounce-indent-p nil)
|
||||||
(setq js2-basic-offset 2)
|
(setq js2-basic-offset 2)
|
||||||
(use-package skewer-mode
|
(use-package skewer-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
|
Loading…
Reference in New Issue
Block a user