summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-22 11:51:03 -0500
committerCase Duckworth2021-04-22 11:51:03 -0500
commit60f8d3f903c8c67d2ed85a05a5b83f9cafd0d734 (patch)
treefdd81a923a746f0a7aa9b1ddd841571fb7d03019
parentBail out of `setup' if straight fails (diff)
downloademacs-60f8d3f903c8c67d2ed85a05a5b83f9cafd0d734.tar.gz
emacs-60f8d3f903c8c67d2ed85a05a5b83f9cafd0d734.zip
Open files better, depending on system
-rw-r--r--init.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/init.el b/init.el index 06ccbfb..ef8cdef 100644 --- a/init.el +++ b/init.el
@@ -510,10 +510,11 @@
510 (:global "C-x C-j" dired-jump) 510 (:global "C-x C-j" dired-jump)
511 (:bind "RET" dired-find-alternate-file) 511 (:bind "RET" dired-find-alternate-file)
512 (with-eval-after-load 'dired 512 (with-eval-after-load 'dired
513 513 (pcase acdw/system
514 (when (eq acdw/system :work) 514 (:work (setup (:straight w32-browser)
515 (setup (:straight w32-browser) 515 (define-key dired-mode-map (kbd "RET") #'dired-w32-browser)))
516 (define-key dired-mode-map (kbd "RET") #'dired-w32-browser))) 516 (:home (setup (:straight dired-open)
517 (:option (prepend dired-open-functions) dired-open-xdg))))
517 518
518 (setup (:straight dired-subtree) 519 (setup (:straight dired-subtree)
519 (:with-map dired-mode-map 520 (:with-map dired-mode-map