Make init.el compatible with outline-minor-mode
This commit is contained in:
parent
eb3b61a9ef
commit
469129d779
@ -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\\'")
|
||||
|
Loading…
Reference in New Issue
Block a user