Open HTML files in Emacs by default

Most of the time, I just want to see the text and edit it, and thus I open HTML
files in Emacs anyway (usually rendering them via `shr-render-buffer`).
This commit is contained in:
Daniel - 2020-12-20 17:57:58 +01:00
parent 29ab4d6335
commit 6d3dada560
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 9 additions and 5 deletions

12
init.el
View File

@ -1969,7 +1969,6 @@
("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\|webm\\)\\(?:\\.part\\)?\\'"
"vlc")
("\\.\\(?:mp3\\|flac\\|ogg\\)\\'" "mplayer")
("\\.html?\\'" "firefox")
("\\.docx?\\'" "loffice")))
(when on-windows
@ -2066,10 +2065,15 @@
(use-package dired-open
:ensure t
:init (unless (eq system-type 'gnu/linux)
:init (progn
(unless (eq system-type 'gnu/linux)
(setq dired-open-use-nohup nil))
:config (add-to-list 'dired-open-functions
#'dired-open-guess-shell-alist))
(setq dired-open-extensions-elisp '(("html" . eww-open-file))))
:config (progn
(add-to-list 'dired-open-functions
#'dired-open-guess-shell-alist)
(add-to-list 'dired-open-functions
#'dired-open-call-function-by-extension)))
(use-package dired-recent
:ensure t