 
 (setq css-indent-offset 2)
 
+(defun ar/open-in-external-app-lambda ()
+  "Return a function to open FPATH externally."
+  (cond
+   ((ar/windowsp)
+    (lambda (fPath)
+      (w32-shell-execute "open" (replace-regexp-in-string "/" "\\" fPath t t))))
+   ((ar/osxp)
+    (lambda (fPath)
+      (shell-command (format "open \"%s\"" fPath))))
+   ((ar/gnulinuxp)
+    (lambda (fPath)
+      (let ((process-connection-type nil))
+        (start-process "" nil "xdg-open" fPath))))))
+
 ;; Thank you Xah Lee.
 ;; from http://ergoemacs.org/emacs/emacs_dired_open_file_in_ext_apps.html
 (defun xah-open-in-external-app (&optional file)

(server-start)

;; Customize vertical window divider:
;; Reverse colors for the border to have nicer line.
(set-face-inverse-video-p 'vertical-border nil)
(set-face-background 'vertical-border (face-background 'default))
;; Set symbol for the border.
(set-display-table-slot standard-display-table
                        'vertical-border

(eval-after-load "projectile"
  '(progn (setq magit-repo-dirs (mapcar (lambda (dir)
                                          (substring dir 0 -1))
                                        ;; Disables "required at runtime" warning for cl package.
                                        (with-no-warnings
                                          (remove-if-not (lambda (project)
                                                           (file-directory-p (concat project "/.git/")))
                                                         (projectile-relevant-known-projects))))
                magit-repo-dirs-depth 1)))

;; Select help window by default.
