Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ** Командная строка eshell
- *** Базовая настройка Eshell
- #+begin_src elisp :tangle my_prog.el :exports code
- (use-package eshell
- :config
- (require 'em-hist)
- (use-package eshell-git-prompt
- :config
- ;; the powerline prompt is best but I've no idea how to shorten it to the last directory.
- (eshell-git-prompt-use-theme 'powerline)
- (define-advice eshell-git-prompt-powerline-dir (:override () short)
- "Show only last directory."
- (file-name-nondirectory (directory-file-name default-directory))))
- :bind (:map eshell-hist-mode-map
- ("<down>" . 'next-line)
- ("<up>" . 'previous-line)
- ([remap eshell-previous-matching-input-from-input] . helm-eshell-history)
- ([remap eshell-list-history] . helm-eshell-history)
- ))
- #+end_src
- *** Выпадающая консоль
- Аналог работы guake терминала только терминал в emacs. Открывается на
- *C-`*. Т.к. я не сильно освоил, то максимум полезно запустить что-то в
- консоли из той же папки что и файл.
- #+begin_src elisp :tangle my_prog.el :exports code
- (use-package eshell-toggle
- :custom
- (eshell-toggle-size-fraction 3)
- (eshell-toggle-run-command nil)
- (eshell-toggle-use-projectile-root t)
- (eshell-toggle-init-function #'eshell-toggle-init-eshell)
- :bind
- ("C-`" . eshell-toggle))
- #+end_src
- *** Eshell - треугольник
- #+begin_src elisp :tangle my_prog.el :exports code
- ;; Мелкий треугольник показывающий расположение команд в вввода в консоли.
- (use-package eshell-fringe-status
- :config
- (add-hook 'eshell-mode-hook 'eshell-fringe-status-mode))
- #+end_src
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement