Add custom emacs-lisp section
This commit is contained in:
parent
08083b5bb2
commit
6f3ed7be93
@ -19,15 +19,19 @@ custom-before.el is loaded before the rest of init.el, while custom-after.el is
|
|||||||
(defvar custom-after-file "~/.emacs.d/custom-after.el")
|
(defvar custom-after-file "~/.emacs.d/custom-after.el")
|
||||||
(when (file-exists-p machine-custom) (load machine-custom))
|
(when (file-exists-p machine-custom) (load machine-custom))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
* Custom emacs-lisp
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defun emacs24_4-p ()
|
||||||
|
(or (and (>= emacs-major-version 24)
|
||||||
|
(>= emacs-minor-version 4))
|
||||||
|
(>= emacs-major-version 25)))
|
||||||
|
#+END_SRC
|
||||||
|
* Packages
|
||||||
|
* Keybindings
|
||||||
* TODO Make the stuff under this heading literate
|
* TODO Make the stuff under this heading literate
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
(defun emacs24_4-p ()
|
|
||||||
(or (and (>= emacs-major-version 24)
|
|
||||||
(>= emacs-minor-version 4))
|
|
||||||
(>= emacs-major-version 25)))
|
|
||||||
|
|
||||||
(when (equal system-type 'darwin)
|
(when (equal system-type 'darwin)
|
||||||
(setq mac-option-modifier 'meta)
|
(setq mac-option-modifier 'meta)
|
||||||
(setq mac-command-modifier 'super))
|
(setq mac-command-modifier 'super))
|
||||||
|
Loading…
Reference in New Issue
Block a user