summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el76
1 files changed, 38 insertions, 38 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 4379085..fabe70e 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -1,5 +1,5 @@
-; This config requires Emacs 24(+?)
-;; Use XDG-ish locations ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; This config requires Emacs 24(+?)
+;;;; Use XDG-ish locations ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq xdg-cache-home (file-name-as-directory (or (getenv "XDG_CACHE_HOME") "~/.cache")))
(setq
package-user-dir (concat xdg-cache-home "emacs/elpa")
@@ -15,7 +15,7 @@
wl-init-file (concat user-emacs-directory "wl.el")
)
-;; The basics that I can't use Emacs without ;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;; The basics that I can't use Emacs without ;;;;;;;;;;;;;;;;;;;;;;;
(show-paren-mode 1)
(column-number-mode 1)
(line-number-mode 1)
@@ -37,18 +37,18 @@
(load custom-file 'noerror)
-;; Early settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-; This isn't particularly important, but set it before doing a whole
-; lot (loading packages), so there isn't a weird change in text size.
+;;;; Early settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; This isn't particularly important, but set it before doing a whole
+;; lot (loading packages), so there isn't a weird change in text size.
(set-face-attribute 'default nil :height 80)
-;; Bootstrap el-get ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-; This downloads and installs el-get (package management) if isn't
-; installed.
+;;;; Bootstrap el-get ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; This downloads and installs el-get (package management) if isn't
+;; installed.
-; Derived from ELPA installation
-; http://tromey.com/elpa/install.html
+;; Derived from ELPA installation
+;; http://tromey.com/elpa/install.html
(defun eval-url (url)
(let ((buffer (url-retrieve-synchronously url)))
(save-excursion
@@ -64,37 +64,37 @@
(eval-url "https://github.com/dimitri/el-get/raw/master/el-get-install.el")))
-;; Install packages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-; This is kinda funny how it works.
-;
-; package.el/ELPA (The standard package manager in Emacs 24) has
-; terrible programatic management. It's great at installing packages,
-; but only interactively. So, I
-; 1) Disable package.el from getting loading all downloaded packages
-; 2) Use el-get to load a specified list of packages from elpa.
-;
-; This is also nice because I can do event-base programming for what
-; to do once a package is loaded, using :after.
+;;;; Install packages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; This is kinda funny how it works.
+;;
+;; package.el/ELPA (The standard package manager in Emacs 24) has
+;; terrible programatic management. It's great at installing packages,
+;; but only interactively. So, I
+;; 1) Disable package.el from getting loading all downloaded packages
+;; 2) Use el-get to load a specified list of packages from elpa.
+;;
+;; This is also nice because I can do event-base programming for what
+;; to do once a package is loaded, using :after.
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
(setq package-enable-at-startup nil)
-; What packages el-get should get from ELPA (if it gets them at all)
+;; What packages el-get should get from ELPA (if it gets them at all)
(setq el-get-sources '(
- ; Minor modes
- (:name dtrt-indent :type elpa ; Detect indent style for existing files
+ ;; Minor modes
+ (:name dtrt-indent :type elpa ;; Detect indent style for existing files
:after (dtrt-indent-mode 1))
- (:name page-break-lines :type elpa ; Display form-feeds pretty
- :after '(lambda ()
- (define-global-minor-mode global-page-break-lines-mode
- page-break-lines-mode page-break-lines-mode
- :group 'page-break-lines)
- (global-page-break-lines-mode 1)))
- (:name smart-tabs-mode :type elpa ; Indent with tabs, align with spaces
+ (:name page-break-lines :type elpa ;; Display form-feeds pretty
+ :after (progn
+ (define-global-minor-mode global-page-break-lines-mode
+ page-break-lines-mode page-break-lines-mode
+ :group 'page-break-lines)
+ (global-page-break-lines-mode 1)))
+ (:name smart-tabs-mode :type elpa ;; Indent with tabs, align with spaces
:after (progn
(smart-tabs-mode 1)
(apply 'smart-tabs-insinuate (mapcar 'car smart-tabs-insinuate-alist))))
- ; Major modes
+ ;; Major modes
(:name coffee-mode :type elpa
:after (add-hook 'coffee-mode-hook
'(lambda ()
@@ -108,19 +108,19 @@
:after (put 'nginx-indent-level 'safe-local-variable 'integerp))
(:name scss-mode :type elpa)
))
-; What packages el-get should install, both from above, and it's
-; internal list of sources.
+;; What packages el-get should install, both from above, and it's
+;; internal list of sources.
(el-get 'sync '(el-get
- ; Minor modes
+ ;; Minor modes
dtrt-indent
smart-tabs-mode
page-break-lines
- ; Major modes
+ ;; Major modes
apel flim semi wanderlust
graphviz-dot-mode
markdown-mode
nginx-mode
- ;nxhtml ; nxhtml is invasive, only enable if actively using
+ ;;nxhtml ; nxhtml is invasive, only enable if actively using
php-mode-improved
))