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)
|
;;; Emacs Config
|
||||||
|
;;;; indentation
|
||||||
;; indentation
|
|
||||||
(setq c-default-style "linux"
|
(setq c-default-style "linux"
|
||||||
c-basic-offset 4
|
c-basic-offset 4
|
||||||
sgml-basic-offset 4)
|
sgml-basic-offset 4)
|
||||||
@ -8,43 +7,43 @@
|
|||||||
(setq-default tab-width 4)
|
(setq-default tab-width 4)
|
||||||
(add-hook 'sh-mode-hook (lambda () (setq tab-width 4)))
|
(add-hook 'sh-mode-hook (lambda () (setq tab-width 4)))
|
||||||
|
|
||||||
;; various options
|
;;;; various options
|
||||||
(setq compilation-scroll-output 1
|
(setq compilation-scroll-output 1
|
||||||
read-file-name-completion-ignore-case t
|
read-file-name-completion-ignore-case t
|
||||||
inhibit-startup-screen t
|
inhibit-startup-screen t
|
||||||
vc-follow-symlinks t
|
vc-follow-symlinks t
|
||||||
custom-file "custom.el")
|
custom-file "custom.el"
|
||||||
|
gc-cons-threshold 100000000)
|
||||||
(load-theme 'fred t)
|
(load-theme 'fred t)
|
||||||
(savehist-mode 1)
|
(savehist-mode 1)
|
||||||
(show-paren-mode 1)
|
(show-paren-mode 1)
|
||||||
(tool-bar-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))
|
(setq backup-directory-alist `((".*" . ,temporary-file-directory))
|
||||||
auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
|
auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
|
||||||
|
|
||||||
;; keybinds
|
;;;; keybinds
|
||||||
(global-set-key (kbd "C-z") `recompile)
|
(global-set-key (kbd "C-z") `recompile)
|
||||||
(global-set-key (kbd "C-S-z") `compile)
|
(global-set-key (kbd "C-S-z") `compile)
|
||||||
|
|
||||||
;; windmove keybinds
|
|
||||||
(when (fboundp 'windmove-default-keybindings)
|
(when (fboundp 'windmove-default-keybindings)
|
||||||
(windmove-default-keybindings))
|
(windmove-default-keybindings))
|
||||||
|
|
||||||
;; install/load quelpa
|
;;; Packages
|
||||||
|
;;;; install/load quelpa
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
(unless (require 'quelpa nil t)
|
(unless (require 'quelpa nil t)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(url-insert-file-contents "https://raw.github.com/quelpa/quelpa/master/bootstrap.el")
|
(url-insert-file-contents "https://raw.github.com/quelpa/quelpa/master/bootstrap.el")
|
||||||
(eval-buffer)))
|
(eval-buffer)))
|
||||||
|
|
||||||
;; install quelpa-use-package
|
;;;; install quelpa-use-package
|
||||||
(quelpa '(quelpa-use-package
|
(quelpa '(quelpa-use-package
|
||||||
:fetcher github
|
:fetcher github
|
||||||
:repo "quelpa/quelpa-use-package"))
|
:repo "quelpa/quelpa-use-package"))
|
||||||
(require 'quelpa-use-package)
|
(require 'quelpa-use-package)
|
||||||
|
|
||||||
;; internal packages
|
;;;; internal packages
|
||||||
(use-package ibuffer
|
(use-package ibuffer
|
||||||
:config
|
:config
|
||||||
(global-set-key (kbd "C-x C-b") `ibuffer)
|
(global-set-key (kbd "C-x C-b") `ibuffer)
|
||||||
@ -57,7 +56,7 @@
|
|||||||
(ibuffer-auto-mode 1)
|
(ibuffer-auto-mode 1)
|
||||||
(setq ibuffer-show-empty-filter-groups nil))))
|
(setq ibuffer-show-empty-filter-groups nil))))
|
||||||
|
|
||||||
;; external packages (required)
|
;;;; external packages (required)
|
||||||
(use-package company :quelpa
|
(use-package company :quelpa
|
||||||
:config
|
:config
|
||||||
(global-company-mode)
|
(global-company-mode)
|
||||||
@ -112,7 +111,7 @@
|
|||||||
:config
|
:config
|
||||||
(cat-mode 1))
|
(cat-mode 1))
|
||||||
|
|
||||||
;; optional external packages
|
;;;; optional external packages
|
||||||
(use-package arduino-mode
|
(use-package arduino-mode
|
||||||
:mode "\\.pde\\'"
|
:mode "\\.pde\\'"
|
||||||
:mode "\\.ino\\'")
|
:mode "\\.ino\\'")
|
||||||
|
Loading…
Reference in New Issue
Block a user