Update emacs.org
This commit is contained in:
parent
ffd4207398
commit
33575254e5
1 changed files with 95 additions and 95 deletions
|
@ -140,7 +140,7 @@ M-x org-bable-tangle
|
||||||
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
|
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
|
||||||
doom-themes-enable-italic t) ; if nil, italics is universally disabled
|
doom-themes-enable-italic t) ; if nil, italics is universally disabled
|
||||||
;; load the theme
|
;; load the theme
|
||||||
(load-theme 'doom-monokai-pro t)
|
(load-theme 'doom-dark+ t)
|
||||||
|
|
||||||
;; Enable flashing mode-line on errors
|
;; Enable flashing mode-line on errors
|
||||||
(doom-themes-visual-bell-config))
|
(doom-themes-visual-bell-config))
|
||||||
|
@ -472,107 +472,107 @@ M-x org-bable-tangle
|
||||||
#+end_src
|
#+end_src
|
||||||
** Treemacs
|
** Treemacs
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package treemacs
|
(use-package treemacs
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
(with-eval-after-load 'winum
|
(with-eval-after-load 'winum
|
||||||
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
|
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq treemacs-collapse-dirs (if treemacs-python-executable 3 0)
|
(setq treemacs-collapse-dirs (if treemacs-python-executable 3 0)
|
||||||
treemacs-deferred-git-apply-delay 0.5
|
treemacs-deferred-git-apply-delay 0.5
|
||||||
treemacs-directory-name-transformer #'identity
|
treemacs-directory-name-transformer #'identity
|
||||||
treemacs-display-in-side-window t
|
treemacs-display-in-side-window t
|
||||||
treemacs-eldoc-display 'simple
|
treemacs-eldoc-display 'simple
|
||||||
treemacs-file-event-delay 2000
|
treemacs-file-event-delay 2000
|
||||||
treemacs-file-extension-regex treemacs-last-period-regex-value
|
treemacs-file-extension-regex treemacs-last-period-regex-value
|
||||||
treemacs-file-follow-delay 0.2
|
treemacs-file-follow-delay 0.2
|
||||||
treemacs-file-name-transformer #'identity
|
treemacs-file-name-transformer #'identity
|
||||||
treemacs-follow-after-init t
|
treemacs-follow-after-init t
|
||||||
treemacs-expand-after-init t
|
treemacs-expand-after-init t
|
||||||
treemacs-find-workspace-method 'find-for-file-or-pick-first
|
treemacs-find-workspace-method 'find-for-file-or-pick-first
|
||||||
treemacs-git-command-pipe ""
|
treemacs-git-command-pipe ""
|
||||||
treemacs-goto-tag-strategy 'refetch-index
|
treemacs-goto-tag-strategy 'refetch-index
|
||||||
treemacs-header-scroll-indicators '(nil . "^^^^^^")
|
treemacs-header-scroll-indicators '(nil . "^^^^^^")
|
||||||
treemacs-hide-dot-git-directory t
|
treemacs-hide-dot-git-directory t
|
||||||
treemacs-indentation 2
|
treemacs-indentation 2
|
||||||
treemacs-indentation-string " "
|
treemacs-indentation-string " "
|
||||||
treemacs-is-never-other-window nil
|
treemacs-is-never-other-window nil
|
||||||
treemacs-max-git-entries 5000
|
treemacs-max-git-entries 5000
|
||||||
treemacs-missing-project-action 'ask
|
treemacs-missing-project-action 'ask
|
||||||
treemacs-move-forward-on-expand nil
|
treemacs-move-forward-on-expand nil
|
||||||
treemacs-no-png-images nil
|
treemacs-no-png-images nil
|
||||||
treemacs-no-delete-other-windows t
|
treemacs-no-delete-other-windows t
|
||||||
treemacs-project-follow-cleanup nil
|
treemacs-project-follow-cleanup nil
|
||||||
treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory)
|
treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory)
|
||||||
treemacs-position 'left
|
treemacs-position 'left
|
||||||
treemacs-read-string-input 'from-child-frame
|
treemacs-read-string-input 'from-child-frame
|
||||||
treemacs-recenter-distance 0.1
|
treemacs-recenter-distance 0.1
|
||||||
treemacs-recenter-after-file-follow nil
|
treemacs-recenter-after-file-follow nil
|
||||||
treemacs-recenter-after-tag-follow nil
|
treemacs-recenter-after-tag-follow nil
|
||||||
treemacs-recenter-after-project-jump 'always
|
treemacs-recenter-after-project-jump 'always
|
||||||
treemacs-recenter-after-project-expand 'on-distance
|
treemacs-recenter-after-project-expand 'on-distance
|
||||||
treemacs-litter-directories '("/node_modules" "/.venv" "/.cask")
|
treemacs-litter-directories '("/node_modules" "/.venv" "/.cask")
|
||||||
treemacs-project-follow-into-home nil
|
treemacs-project-follow-into-home nil
|
||||||
treemacs-show-cursor nil
|
treemacs-show-cursor nil
|
||||||
treemacs-show-hidden-files t
|
treemacs-show-hidden-files t
|
||||||
treemacs-silent-filewatch nil
|
treemacs-silent-filewatch nil
|
||||||
treemacs-silent-refresh nil
|
treemacs-silent-refresh nil
|
||||||
treemacs-sorting 'alphabetic-asc
|
treemacs-sorting 'alphabetic-asc
|
||||||
treemacs-select-when-already-in-treemacs 'move-back
|
treemacs-select-when-already-in-treemacs 'move-back
|
||||||
treemacs-space-between-root-nodes t
|
treemacs-space-between-root-nodes t
|
||||||
treemacs-tag-follow-cleanup t
|
treemacs-tag-follow-cleanup t
|
||||||
treemacs-tag-follow-delay 1.5
|
treemacs-tag-follow-delay 1.5
|
||||||
treemacs-text-scale nil
|
treemacs-text-scale nil
|
||||||
treemacs-user-mode-line-format nil
|
treemacs-user-mode-line-format nil
|
||||||
treemacs-user-header-line-format nil
|
treemacs-user-header-line-format nil
|
||||||
treemacs-wide-toggle-width 70
|
treemacs-wide-toggle-width 70
|
||||||
treemacs-width 35
|
treemacs-width 35
|
||||||
treemacs-width-increment 1
|
treemacs-width-increment 1
|
||||||
treemacs-width-is-initially-locked t
|
treemacs-width-is-initially-locked t
|
||||||
treemacs-workspace-switch-cleanup nil)
|
treemacs-workspace-switch-cleanup nil)
|
||||||
|
|
||||||
;; The default width and height of the icons is 22 pixels. If you are
|
;; The default width and height of the icons is 22 pixels. If you are
|
||||||
;; using a Hi-DPI display, uncomment this to double the icon size.
|
;; using a Hi-DPI display, uncomment this to double the icon size.
|
||||||
;;(treemacs-resize-icons 44)
|
;;(treemacs-resize-icons 44)
|
||||||
|
|
||||||
(treemacs-follow-mode t)
|
(treemacs-follow-mode t)
|
||||||
(treemacs-tag-follow-mode t)
|
(treemacs-tag-follow-mode t)
|
||||||
(treemacs-project-follow-mode t)
|
(treemacs-project-follow-mode t)
|
||||||
(treemacs-filewatch-mode t)
|
(treemacs-filewatch-mode t)
|
||||||
(treemacs-fringe-indicator-mode 'always)
|
(treemacs-fringe-indicator-mode 'always)
|
||||||
(when treemacs-python-executable
|
(when treemacs-python-executable
|
||||||
(treemacs-git-commit-diff-mode t))
|
(treemacs-git-commit-diff-mode t))
|
||||||
|
|
||||||
(pcase (cons (not (null (executable-find "git")))
|
(pcase (cons (not (null (executable-find "git")))
|
||||||
(not (null treemacs-python-executable)))
|
(not (null treemacs-python-executable)))
|
||||||
(`(t . t)
|
(`(t . t)
|
||||||
(treemacs-git-mode 'deferred))
|
(treemacs-git-mode 'deferred))
|
||||||
(`(t . _)
|
(`(t . _)
|
||||||
(treemacs-git-mode 'simple)))
|
(treemacs-git-mode 'simple)))
|
||||||
|
|
||||||
(treemacs-hide-gitignored-files-mode nil))
|
(treemacs-hide-gitignored-files-mode nil))
|
||||||
:bind
|
:bind
|
||||||
(:map global-map
|
(:map global-map
|
||||||
("M-0" . treemacs-select-window)
|
("M-0" . treemacs-select-window)
|
||||||
("C-x t 1" . treemacs-delete-other-windows)
|
("C-x t 1" . treemacs-delete-other-windows)
|
||||||
("C-x t d" . treemacs-select-directory)
|
("C-x t d" . treemacs-select-directory)
|
||||||
("C-x t B" . treemacs-bookmark)
|
("C-x t B" . treemacs-bookmark)
|
||||||
("C-x t C-t" . treemacs-find-file)
|
("C-x t C-t" . treemacs-find-file)
|
||||||
("C-x t M-t" . treemacs-find-tag)))
|
("C-x t M-t" . treemacs-find-tag)))
|
||||||
|
|
||||||
(use-package treemacs-evil
|
(use-package treemacs-evil
|
||||||
:after (treemacs evil)
|
:after (treemacs evil)
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
(use-package treemacs-projectile
|
(use-package treemacs-projectile
|
||||||
:after (treemacs projectile)
|
:after (treemacs projectile)
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
(use-package treemacs-magit
|
(use-package treemacs-magit
|
||||||
:after (treemacs magit)
|
:after (treemacs magit)
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Dev Packages
|
** Dev Packages
|
||||||
|
|
Loading…
Reference in a new issue