config/doom: update to roam2 & add dired-icon

This commit is contained in:
xeruf 2021-10-13 19:13:07 +02:00
parent 6384cf62f1
commit b59d736e33
3 changed files with 21 additions and 8 deletions

View File

@ -167,6 +167,7 @@ Version 2019-11-04 2021-02-16"
)
(after! recentf
(setq recentf-keep '(or file-remote-p recentf-keep-default-predicate))
(add-to-list 'recentf-exclude "writing\\/tug")
(add-to-list 'recentf-exclude "\\.\\(sync\\|stversions\\|stfolder\\)")
)
@ -174,7 +175,8 @@ Version 2019-11-04 2021-02-16"
(after! projectile
(push user-data-dir projectile-ignored-projects)
(let ((default-directory user-data-dir))
(add-to-list 'projectile-known-projects (expand-file-name "music") t)
(add-to-list 'projectile-known-projects (expand-file-name "music/") t)
(add-to-list 'projectile-known-projects (expand-file-name "2-standards/notes/") t)
)
)
@ -389,7 +391,9 @@ Version 2019-11-04 2021-02-16"
(string-trim
(shell-command-to-string (concat "file -b --mime-type '" filepath "'"))))
(setq image-dired-external-viewer "gimp")
(setq image-dired-external-viewer "gimp"
image-dired-thumb-size 300
image-dired-show-all-from-dir-max-files 300)
;;(let ((mime "image/x-xcf")) (msg mime))
@ -404,13 +408,15 @@ Version 2019-11-04 2021-02-16"
(map! :map dired-mode-map
:n "RET" 'dired-find-file-dwim
:leader
:desc "Dragon" "d" (lambda () (interactive) (dragon (s-join " " (dired-get-marked-files))))
:desc "Dragon marks" "d"
(lambda () (interactive) (dragon (s-join " " (dired-get-marked-files))))
:localleader
:desc "Compress/Extract" "c" 'dired-do-compress
:desc "Size information" "s" (lambda () (interactive) (dired-smart-shell-command "s"))
:desc "Size information" "s"
(lambda () (interactive) (dired-smart-shell-command "s"))
:desc "Symlink to this" "l" 'dired-do-symlink
:desc "Open image-dired" "i" 'image-dired
;(lambda () (interactive) (image-dired buffer-file-name))
:desc "Open image-dired" "i"
(lambda () (interactive) (image-dired buffer-file-name))
:desc "Open image externally" "I" 'image-dired-dired-display-external
)
(map! :map wdired-mode-map
@ -421,6 +427,9 @@ Version 2019-11-04 2021-02-16"
)
(use-package! dired-icon
:hook dired-mode)
(after! spell-fu
(remove-hook 'text-mode-hook #'spell-fu-mode)
)

View File

@ -145,7 +145,7 @@
;;nim ; python + lisp at the speed of c
nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel
(org +noter +dragndrop +present +roam +journal) ; organize your plain life in plain text
(org +pretty +dragndrop +journal +roam2 +pomodoro +noter +present +pandoc) ; organize your plain life in plain text
;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional

View File

@ -52,14 +52,18 @@
(package! emms)
(unpin! org-journal)
(package! ox-context
:recipe (:host github :repo "Jason-S-Ross/ox-context"))
(package! evil-tutor) ; dark vim tutor
(package! evil-args) ; motions in args
(package! evil-replace-with-register) ; grrrrr
;(package! evil-better-visual-line) ; not sure if this actually helps
(package! visual-fill-column) ; Soft line wrapping at character count
(package! dired-icon)
(package! activity-watch-mode)
(package! evil-tutor)
(package! togetherly) ; Collaborative editing
(package! direnv) ; directory-local environment for haskell-nix things