Add function system-is-mac and system-is-linux

This commit is contained in:
sbenner 2014-08-11 17:53:02 -04:00
parent 495b96b6eb
commit 4d6cb8d546
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@
(dolist (fun funs)
(add-hook hook fun)))
(defun system-is-mac ()
(interactive)
(string-equal system-type "darwin"))
(defun system-is-linux ()
(interactive)
(string-equal system-type "gnu/linux"))
;; insert one or several line below without changing current evil state
(defun evil-insert-line-below (count)
"Insert one of several lines below the current point's line without changing