From 05b3bc8255770dd10aa6c513b2b2ebb8689b0096 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 19 Nov 2014 17:39:21 -0800 Subject: [PATCH] Move emacs version predicate to top of file for use in use-pacakge statements. --- init.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index a58f22ca..f1e6a6ba 100644 --- a/init.el +++ b/init.el @@ -13,6 +13,11 @@ (replace-regexp-in-string "\n$" "" (shell-command-to-string "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 ;; ============================================================================= @@ -495,11 +500,6 @@ ;; functions ;; ============================================================================= -(defun emacs24_4-p () - (or (and (>= emacs-major-version 24) - (>= emacs-minor-version 4)) - (>= emacs-major-version 25))) - (defun sudo-edit (&optional arg) "Edit currently visited file as root.