config/doom: little additions & reorderings
This commit is contained in:
parent
2e33ec0efb
commit
d174be33eb
|
@ -151,7 +151,7 @@ Version 2019-11-04 2021-02-16"
|
|||
|
||||
;; Data dirs
|
||||
|
||||
(defvar user-data-dir "~/data" "Location of the main user data")
|
||||
(defvar user-data-dir "~/data/" "Location of the main user data")
|
||||
|
||||
(load! "./local.el" nil t)
|
||||
|
||||
|
@ -171,9 +171,13 @@ Version 2019-11-04 2021-02-16"
|
|||
(add-to-list 'recentf-exclude "\\.\\(sync\\|stversions\\|stfolder\\)")
|
||||
)
|
||||
|
||||
(after! ivy
|
||||
(ivy-define-key ivy-minibuffer-map (kbd "<S-return>") 'ivy-immediate-done)
|
||||
(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)
|
||||
)
|
||||
)
|
||||
|
||||
;;;; ORG
|
||||
(after! org
|
||||
|
||||
|
@ -356,10 +360,6 @@ Version 2019-11-04 2021-02-16"
|
|||
|
||||
;;;; PACKAGES
|
||||
|
||||
(push "~/data" projectile-ignored-projects)
|
||||
|
||||
(setq eww-search-prefix "https://safe.duckduckgo.com/html/?q=")
|
||||
|
||||
(map! :map special-mode-map
|
||||
"<tab>" 'other-window
|
||||
"q" 'kill-this-buffer
|
||||
|
@ -371,19 +371,25 @@ Version 2019-11-04 2021-02-16"
|
|||
:n "+" 'image-increase-size
|
||||
:n "-" 'image-decrease-size)
|
||||
|
||||
(setq eww-search-prefix "https://safe.duckduckgo.com/html/?q=")
|
||||
|
||||
(after! ivy
|
||||
(ivy-define-key ivy-minibuffer-map (kbd "<S-return>") 'ivy-immediate-done)
|
||||
)
|
||||
|
||||
(after! dired
|
||||
|
||||
;; Make dired open certain file types externally when pressing RET on a file https://pastebin.com/8QWYpCA2
|
||||
;; Alternative: https://www.emacswiki.org/emacs/OpenWith
|
||||
(defvar unsupported-mime-types
|
||||
'("image/x-xcf")) ; "application/zip"))
|
||||
|
||||
(load "subr-x")
|
||||
|
||||
(defun get-mimetype (filepath)
|
||||
(string-trim
|
||||
(shell-command-to-string (concat "file -b --mime-type '" filepath "'"))))
|
||||
|
||||
(setq image-dired-external-viewer "gimp")
|
||||
|
||||
;;(let ((mime "image/x-xcf")) (msg mime))
|
||||
|
||||
(defun dired-find-file-dwim ()
|
||||
|
@ -399,11 +405,12 @@ Version 2019-11-04 2021-02-16"
|
|||
:leader
|
||||
:desc "Dragon" "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 "Symlink to this" "l" 'dired-do-symlink
|
||||
:desc "Open dir in image-dired" "i"
|
||||
(lambda () (interactive) (image-dired buffer-file-name))
|
||||
:desc "Compress/Extract" "c" 'dired-do-compress
|
||||
:desc "Open image-dired" "i" 'image-dired
|
||||
;(lambda () (interactive) (image-dired buffer-file-name))
|
||||
:desc "Open image externally" "I" 'image-dired-dired-display-external
|
||||
)
|
||||
(map! :map wdired-mode-map
|
||||
:n "RET" (lambda () (interactive) (progn
|
||||
|
@ -423,9 +430,8 @@ Version 2019-11-04 2021-02-16"
|
|||
|
||||
(global-activity-watch-mode)
|
||||
|
||||
(use-package! tramp
|
||||
:defer t
|
||||
:config
|
||||
(after! tramp
|
||||
(setq tramp-default-method "scpx")
|
||||
(add-to-list 'tramp-methods
|
||||
'("yadm"
|
||||
(tramp-login-program "yadm")
|
||||
|
|
|
@ -64,7 +64,8 @@
|
|||
(package! plantuml-mode) ; Diagrams
|
||||
(package! adoc-mode) ; Asciidoc, a md alternative
|
||||
(package! nov) ; epub reader
|
||||
(package! pkgbuild-mode)
|
||||
(package! pkgbuild-mode) ; AUR PKGBUILDs
|
||||
(package! picpocket) ; image viewer - https://github.com/johanclaesson/picpocket
|
||||
|
||||
(package! chordpro-mode
|
||||
:recipe (:host github :repo "toemacs/chordpro-mode")) ; chord sheets
|
||||
|
|
Loading…
Reference in New Issue