From 469129d7798ca297a225aa061564161a009b39a0 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 7 Oct 2015 14:16:41 -0400 Subject: [PATCH] Make init.el compatible with outline-minor-mode --- .emacs.d/init.el | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6310233..24d7630 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,6 +1,5 @@ -(setq gc-cons-threshold 100000000) - -;; indentation +;;; Emacs Config +;;;; indentation (setq c-default-style "linux" c-basic-offset 4 sgml-basic-offset 4) @@ -8,43 +7,43 @@ (setq-default tab-width 4) (add-hook 'sh-mode-hook (lambda () (setq tab-width 4))) -;; various options +;;;; various options (setq compilation-scroll-output 1 read-file-name-completion-ignore-case t inhibit-startup-screen t vc-follow-symlinks t - custom-file "custom.el") + custom-file "custom.el" + gc-cons-threshold 100000000) (load-theme 'fred t) (savehist-mode 1) (show-paren-mode 1) (tool-bar-mode -1) -;; save backups and autosaves in tmp +;;;; save backups and autosaves in tmp (setq backup-directory-alist `((".*" . ,temporary-file-directory)) auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) -;; keybinds +;;;; keybinds (global-set-key (kbd "C-z") `recompile) (global-set-key (kbd "C-S-z") `compile) - -;; windmove keybinds (when (fboundp 'windmove-default-keybindings) (windmove-default-keybindings)) -;; install/load quelpa +;;; Packages +;;;; install/load quelpa (package-initialize) (unless (require 'quelpa nil t) (with-temp-buffer (url-insert-file-contents "https://raw.github.com/quelpa/quelpa/master/bootstrap.el") (eval-buffer))) -;; install quelpa-use-package +;;;; install quelpa-use-package (quelpa '(quelpa-use-package :fetcher github :repo "quelpa/quelpa-use-package")) (require 'quelpa-use-package) -;; internal packages +;;;; internal packages (use-package ibuffer :config (global-set-key (kbd "C-x C-b") `ibuffer) @@ -57,7 +56,7 @@ (ibuffer-auto-mode 1) (setq ibuffer-show-empty-filter-groups nil)))) -;; external packages (required) +;;;; external packages (required) (use-package company :quelpa :config (global-company-mode) @@ -112,7 +111,7 @@ :config (cat-mode 1)) -;; optional external packages +;;;; optional external packages (use-package arduino-mode :mode "\\.pde\\'" :mode "\\.ino\\'")