Skip to content

Commit

Permalink
Stop using Chrome on non OSX (baby steps)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwacky42 committed Nov 19, 2019
1 parent 93ef956 commit 1673b82
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lisp/misc.el
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ The optional NEW-WINDOW argument is not used. It had better be Chrome or Chromi
(interactive (browse-url-interactive-arg "URL: "))
(start-process (concat "open " url " --incognito") nil "open" url))

(cond (*is-a-mac* (setq browse-url-browser-function 'wacky/browse-url-default-macosx-browser))
(t (progn (setq browse-url-browser-function 'browse-url-generic)
(setq browse-url-generic-program "/opt/google/chrome/chrome"))))
(setq browse-url-generic-args (list "--incognito"))
(cond (*is-a-mac* (setq browse-url-browser-function 'wacky/browse-url-default-macosx-browser
browse-url-generic-args (list "--incognito")))
(t (progn (setq browse-url-browser-function 'browse-url-firefox)
(setq browse-url-firefox-arguments (list "--private-window")))))


;; Indent with spaces instead of tabs
;(setq-default indent-tabs-mode nil)
Expand Down

0 comments on commit 1673b82

Please sign in to comment.