 ;; (set-face-foreground 'highlight nil)
 
 ;;  From http://doc.rix.si/org/fsem.html
-(defun ar/gnulinuxp ()
+(defun ar/gnu-linux-p ()
   "Return t if the system is a GNU/Linux machine, otherwise nil."
   (string-equal system-type "gnu/linux"))
 
-(defun ar/osxp ()
+(defun ar/osx-p ()
   "Return t if the system is a Mac OS X machine, otherwise nil."
   (string-equal system-type "darwin"))
 

(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))))))


(defun ar/init-for-osx ()
  "Perform initializations for Mac OS X."
  (when (ar/osx-p)
    ;; On Mac, this is effectively fn-M-backspace.
    (bind-key "M-(" #'kill-word)
    ;; Keep menu bar under graphical OS X for fullscreen.
