[Emacs] Set default browser to chrome in linux

This commit is contained in:
Ivan Malison 2016-09-20 02:54:38 -07:00
parent 1f27d8a3e7
commit aa203404b8
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -982,6 +982,12 @@ 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
** Misc ** Misc
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defvar iedit-toggle-key-default nil) (defvar iedit-toggle-key-default nil)