Move emacs version predicate to top of file for use in use-pacakge statements.

This commit is contained in:
Ivan Malison 2014-11-19 17:39:21 -08:00
parent 7bba305333
commit 05b3bc8255

10
init.el
View File

@ -13,6 +13,11 @@
(replace-regexp-in-string "\n$" "" (shell-command-to-string (replace-regexp-in-string "\n$" "" (shell-command-to-string
"git config --get user.name"))) "git config --get user.name")))
(defun emacs24_4-p ()
(or (and (>= emacs-major-version 24)
(>= emacs-minor-version 4))
(>= emacs-major-version 25)))
;; ============================================================================= ;; =============================================================================
;; GUI Disables ;; GUI Disables
;; ============================================================================= ;; =============================================================================
@ -495,11 +500,6 @@
;; functions ;; functions
;; ============================================================================= ;; =============================================================================
(defun emacs24_4-p ()
(or (and (>= emacs-major-version 24)
(>= emacs-minor-version 4))
(>= emacs-major-version 25)))
(defun sudo-edit (&optional arg) (defun sudo-edit (&optional arg)
"Edit currently visited file as root. "Edit currently visited file as root.