[Emacs] Use xdg-open as browser

This commit is contained in:
Ivan Malison 2017-04-21 15:12:56 -07:00
parent aa90699673
commit 230340e4ac
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -364,6 +364,12 @@ to cause issues. Oh well...
;; XXX: This doesn't seem to work ;; XXX: This doesn't seem to work
(setq font-use-system-font nil) (setq font-use-system-font nil)
#+END_SRC #+END_SRC
** Set default browser
#+BEGIN_SRC emacs-lisp
(when (equal system-type 'gnu/linux)
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "xdg-open"))
#+END_SRC
* Functions * Functions
** Join Paths ** Join Paths
Works in the same way as os.path.join in python Works in the same way as os.path.join in python
@ -1343,12 +1349,6 @@ proced is an top like utility that runs inside of emacs. The following sets auto
(setq proced-auto-update-interval 1) (setq proced-auto-update-interval 1)
(add-hook 'proced-mode-hook (lambda () (proced-toggle-auto-update +1))) (add-hook 'proced-mode-hook (lambda () (proced-toggle-auto-update +1)))
#+END_SRC #+END_SRC
** Set default browser
#+BEGIN_SRC emacs-lisp
(when (equal system-type 'gnu/linux)
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "google-chrome-stable"))
#+END_SRC
** Set epa program ** Set epa program
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq epg-gpg-program "gpg") (setq epg-gpg-program "gpg")