config/doom: little fixes
This commit is contained in:
parent
d5322c1fc0
commit
e535bb0420
|
@ -344,6 +344,8 @@ Version 2019-11-04 2021-02-16"
|
||||||
|
|
||||||
;;;; PACKAGES
|
;;;; PACKAGES
|
||||||
|
|
||||||
|
(push "~/data" projectile-ignored-projects)
|
||||||
|
|
||||||
(setq eww-search-prefix "https://safe.duckduckgo.com/html/?q=")
|
(setq eww-search-prefix "https://safe.duckduckgo.com/html/?q=")
|
||||||
|
|
||||||
(map! :map special-mode-map
|
(map! :map special-mode-map
|
||||||
|
@ -365,7 +367,7 @@ Version 2019-11-04 2021-02-16"
|
||||||
|
|
||||||
(defun get-mimetype (filepath)
|
(defun get-mimetype (filepath)
|
||||||
(string-trim
|
(string-trim
|
||||||
(shell-command-to-string (concat "file -b --mime-type " filepath))))
|
(shell-command-to-string (concat "file -b --mime-type '" filepath "'"))))
|
||||||
|
|
||||||
;;(let ((mime "image/x-xcf")) (msg mime))
|
;;(let ((mime "image/x-xcf")) (msg mime))
|
||||||
|
|
||||||
|
@ -373,7 +375,7 @@ Version 2019-11-04 2021-02-16"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((file (dired-get-filename nil t))
|
(let* ((file (dired-get-filename nil t))
|
||||||
(mime (get-mimetype file)))
|
(mime (get-mimetype file)))
|
||||||
(if (or (s-prefix? "video" mime) (member mime unsupported-mime-types))
|
(if (or (string-prefix-p "audio" mime) (string-prefix-p "video" mime) (member mime unsupported-mime-types))
|
||||||
(call-process "xdg-open" nil 0 nil file)
|
(call-process "xdg-open" nil 0 nil file)
|
||||||
(find-file file))))
|
(find-file file))))
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
# name: Tag roam file as tech
|
# name: Tag roam file as tech
|
||||||
# key: +tech
|
# key: +tech
|
||||||
# --
|
# --
|
||||||
#+roam_tags: tech
|
#+roam_tags: tech software
|
||||||
|
|
Loading…
Reference in New Issue