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`).
Daniel Borchmann 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

View File

@ -1969,7 +1969,6 @@
("\\.\\(?: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)
(setq dired-open-use-nohup nil))
:config (add-to-list 'dired-open-functions
:init (progn
(unless (eq system-type 'gnu/linux)
(setq dired-open-use-nohup nil))
(setq dired-open-extensions-elisp '(("html" . eww-open-file))))
:config (progn
(add-to-list 'dired-open-functions
(add-to-list 'dired-open-functions
(use-package dired-recent
:ensure t