From dda5c6dd9ab9b33a05489fba46a0e3d4c4fc569b Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Sun, 18 Mar 2018 11:22:30 +0100 Subject: [PATCH] treemacs added --- config.org | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/config.org b/config.org index f59b596..f970a75 100644 --- a/config.org +++ b/config.org @@ -744,4 +744,86 @@ _v_ verify setup _f_ check _s_ select #+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