forked from colonelpanic/dotfiles
Move emacs version predicate to top of file for use in use-pacakge statements.
This commit is contained in:
parent
7bba305333
commit
05b3bc8255
10
init.el
10
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user