Dired, Treemacs und Textbreite

This commit is contained in:
2020-12-22 20:43:36 +01:00
parent 58979a9d9a
commit 24c5306512

View File

@@ -312,6 +312,7 @@ size. This function also handles icons and modeline font sizes."
:after isearch :after isearch
:config (global-anzu-mode)) :config (global-anzu-mode))
#+END_SRC #+END_SRC
* Helm * Helm
[[https://tuhdo.github.io/helm-intro.html][A Package in a league of its own: Helm]] [[https://tuhdo.github.io/helm-intro.html][A Package in a league of its own: Helm]]
Helm ist eine Schnittstelle, mit der man in einer Auswahl von Kandidaten suchen und filtern kann. Helm ist eine Schnittstelle, mit der man in einer Auswahl von Kandidaten suchen und filtern kann.
@@ -351,3 +352,60 @@ size. This function also handles icons and modeline font sizes."
:preface (require 'helm-config) :preface (require 'helm-config)
:config (helm-mode 1)) :config (helm-mode 1))
#+END_SRC #+END_SRC
* Dateien und Buffer
** Dired
[[https://www.gnu.org/software/emacs/manual/html_node/emacs/Dired.html][Dired, the Directory Editor]]
#+BEGIN_SRC emacs-lisp
(use-package dired
:ensure nil
:config
;; Always delete and copy recursively
(setq dired-recursive-deletes 'always
dired-recursive-copies 'always)
(when (executable-find "ls")
;; Using `insert-directory-program'
(setq ls-lisp-use-insert-directory-program t)
;; Show directory first
(setq dired-listing-switches "-alh --group-directories-first")))
;; Show git info in dired
(use-package dired-git-info
:bind (:map dired-mode-map
(")" . dired-git-info-mode)))
;; Allow rsync from dired buffers
(use-package dired-rsync
:bind (:map dired-mode-map
("C-c C-r" . dired-rsync)))
;;Icons
(use-package all-the-icons-dired
:hook (dired-mode . all-the-icons-dired-mode))
#+END_SRC
** Treemacs
[[https://github.com/Alexander-Miller/treemacs][Treemacs - a tree layout file explorer for Emacs]]
#+BEGIN_SRC emacs-lisp
(use-package treemacs
:diminish
:commands (treemacs-follow-mode
treemacs-filewatch-mode
treemacs-fringe-indicator-mode
treemacs-git-mode
treemacs)
:bind (([f8] . treemacs)
("M-0" . treemacs-select-window)
("C-x 1" . treemacs-delete-other-windows)
("C-x t 1" . treemacs-delete-other-windows)
("C-x t t" . treemacs)
("C-x t b" . treemacs-bookmark)
("C-x t C-t" . treemacs-find-file)
("C-x t M-t" . treemacs-find-tag)))
#+END_SRC
* Text
** Textbreite
#+BEGIN_SRC emacs-lisp
(setq-default fill-column 90)
(setq column-number-mode t)
(use-package virtual-auto-fill
:hook (text-mode . virtual-auto-fill-mode))
#+END_SRC