Browse Source

treemacs added

master
Marc Pohling 6 years ago
parent
commit
dda5c6dd9a
1 changed files with 82 additions and 0 deletions
  1. 82
      config.org

82
config.org

@ -744,4 +744,86 @@ _v_ verify setup _f_ check _s_ select
#+end_src #+end_src
* Treemacs
A file manager comparable to neotree.
It has some requirements, which gets used here anyway:
- ace-window
- hydra
- projectile
- python
#+begin_src emacs-lisp
(use-package treemacs
:ensure t
:defer t
:config
(setq treemacs-change-root-without-asking nil
treemacs-collapse-dirs (if (executable-find "python") 3 0)
treemacs-file-event-delay 5000
treemacs-follow-after-init t
treemacs-follow-recenter-distance 0.1
treemacs-goto-tag-strategy 'refetch-index
treemacs-indentation 2
treemacs-indentation-string " "
treemacs-is-never-other-window nil
treemacs-never-persist nil
treemacs-no-png-images nil
treemacs-recenter-after-file-follow nil
treemacs-recenter-after-tag-follow nil
treemacs-show-hidden-files t
treemacs-silent-filewatch nil
treemacs-silent-refresh nil
treemacs-sorting 'alphabetic-desc
treemacs-tag-follow-cleanup t
treemacs-tag-follow-delay 1.5
treemacs-width 35)
(treemacs-follow-mode t)
(treemacs-filewatch-mode t)
(pcase (cons (not (null (executable-find "git")))
(not (null (executable-find "python3"))))
(`(t . t)
(treemacs-git-mode 'extended))
(`(t . _)
(treemacs-git-mode 'simple)))
:bind
(:map global-map
([f8] . treemacs-toggle))
)
#+end_src
Treemacs-projectile is useful for uhh.. TODO explain!
#+begin_src emacs-lisp
(use-package treemacs-projectile
:ensure t
:defer t
:config
(setq treemacs-header-function #'treemacs-projectile-create-header)
)
#+end_src
TODO
Hydrastuff or keybindings for functions:
- treemacs-projectile
- treemacs-projectile-toggle
- treemacs-toggle
- treemacs-bookmark
- treemacs-find-file
- treemacs-find-tag
* Window Handling
Some tools to easen the navigation, creation and deletion of windows
** Ace-Window
** Windmove
Windmove easens the navigation between windows.
Here we are setting the default keybindings (shift+arrow
#+begin_src emacs-lisp
(use-package windmove
:ensure t
:config
(windmove-default-keybindings)
)
#+end_src
* Quality of Life * Quality of Life
Loading…
Cancel
Save