(Emacs/app)~changed project-root function and added aliases
project-root now uses project.el. aliases for goto and project-root.
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
alias ff find-file-other-window $1
|
alias p~ project-root
|
||||||
|
alias gt goto
|
||||||
|
alias clear clear-scrollback
|
||||||
alias d dired $1
|
alias d dired $1
|
||||||
alias clear clear-scrollback
|
alias ff find-file-other-window $1
|
||||||
|
|||||||
@@ -547,12 +547,12 @@ directory.
|
|||||||
"Use `read-directory-name' to change directories."
|
"Use `read-directory-name' to change directories."
|
||||||
(eshell/cd (list (read-directory-name "Directory?: "))))
|
(eshell/cd (list (read-directory-name "Directory?: "))))
|
||||||
|
|
||||||
(with-eval-after-load "projectile"
|
(defun eshell/project-root (&rest args)
|
||||||
(defun eshell/goto-project-root (&rest args)
|
"Change to directory `project-root'"
|
||||||
"Change to directory `projectile-project-root'"
|
(if (project-current)
|
||||||
(if (projectile-project-root)
|
(eshell/cd (list (project-root (project-current))))
|
||||||
(eshell/cd (list (projectile-project-root)))
|
(eshell/echo (format "[%s]: No project in current directory"
|
||||||
(eshell/echo "Projectile not active here..."))))
|
(propertize "Error" 'font-lock-face '(:foreground "red"))))))
|
||||||
|
|
||||||
(defun +eshell/current-buffer ()
|
(defun +eshell/current-buffer ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|||||||
Reference in New Issue
Block a user