Set Default Browser

This commit is contained in:
Jesús 2019-10-26 19:05:08 -05:00
parent 5f1c2fbc10
commit b40b52e81e
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
2 changed files with 7 additions and 10 deletions

View File

@ -78,6 +78,12 @@
'(2 "_NET_WM_STATE_FULLSCREEN" 0)))
(global-set-key (kbd "<f11>") 'myemacs/toggle-fullscreen) ; F11 FullScreen
;;----------------------------------------------------------------------------
;; Define custom browser
;;----------------------------------------------------------------------------
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "iceweasel-uxp")
;;----------------------------------------------------------------------------
;; clock
;;----------------------------------------------------------------------------

View File

@ -31,16 +31,7 @@
(goto-char (point-max))
(insert "\n"
"</body>\n"
"</html>\n"))
;;----------------------------------------------------------------------------
;; Define custom browser
;;----------------------------------------------------------------------------
(defvar browse-url-generic-program)
(setq browse-url-generic-program "iceweasel-uxp")
(defadvice markdown-preview (around markdown-preview-in-generic activate compile)
(let ((browse-url-browser-function #'browse-url-generic))
ad-do-it)))
"</html>\n")))
(provide 'init-markdown)