Move Elisp configuration out of Org-mode
This commit is contained in:
parent
accea011e3
commit
8ad6f5f98e
2 changed files with 35 additions and 38 deletions
35
emacs/.emacs.d/init/oni-emacs-lisp-mode-init.el
Normal file
35
emacs/.emacs.d/init/oni-emacs-lisp-mode-init.el
Normal file
|
@ -0,0 +1,35 @@
|
|||
;;; oni-emacs-lisp-mode-init.el --- Emacs Lisp configuration -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2018 Tom Willemse
|
||||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
;; it under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation, either version 3 of the License, or
|
||||
;; (at your option) any later version.
|
||||
|
||||
;; This program is distributed in the hope that it will be useful,
|
||||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
;; GNU General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; My Emacs Lisp configuration.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(add-hook 'emacs-lisp-mode-hook 'paredit-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook 'company-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook 'flycheck-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook 'nameless-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook 'fci-mode)
|
||||
|
||||
(provide 'oni-emacs-lisp-mode-init)
|
||||
;;; oni-emacs-lisp-mode-init.el ends here
|
|
@ -1,38 +0,0 @@
|
|||
#+TITLE: Emacs lisp mode configuration
|
||||
|
||||
Enable paredit mode to help always keep parentheses balanced.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'emacs-lisp-mode-hook 'paredit-mode)
|
||||
#+END_SRC
|
||||
|
||||
Enable rainbow delimiters mode to help visualize the different
|
||||
parenthesized levels.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode)
|
||||
#+END_SRC
|
||||
|
||||
Enable company mode to help complete long symbols and such.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'emacs-lisp-mode-hook 'company-mode)
|
||||
#+END_SRC
|
||||
|
||||
Enable flycheck mode to help me avoid errors.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'emacs-lisp-mode-hook 'flycheck-mode)
|
||||
#+END_SRC
|
||||
|
||||
Enable namesless mode to help with viewing name-prefixed symbols.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'emacs-lisp-mode-hook 'nameless-mode)
|
||||
#+END_SRC
|
||||
|
||||
Show fill column
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'emacs-lisp-mode-hook 'fci-mode)
|
||||
#+END_SRC
|
Loading…
Reference in a new issue