Add newlines between sections for easier navigation

This commit is contained in:
Adam Goldsmith 2016-01-20 21:33:32 -05:00
parent d5784ee558
commit 6e8a4569b6

View File

@ -60,6 +60,7 @@
(use-package compile (use-package compile
:config :config
(add-hook 'compilation-start-hook (lambda (x) (setq-local scroll-up-aggressively 0)))) (add-hook 'compilation-start-hook (lambda (x) (setq-local scroll-up-aggressively 0))))
(use-package verilog-mode (use-package verilog-mode
:defer :defer
:config :config
@ -69,6 +70,7 @@
verilog-indent-level-module 4 verilog-indent-level-module 4
verilog-auto-newline nil) verilog-auto-newline nil)
(add-hook 'verilog-mode-hook (lambda () (setq indent-tabs-mode nil)))) (add-hook 'verilog-mode-hook (lambda () (setq indent-tabs-mode nil))))
;;;; external packages (required) ;;;; external packages (required)
(use-package company :quelpa (use-package company :quelpa
:config :config
@ -78,6 +80,7 @@
company-dabbrev-ignore-case nil company-dabbrev-ignore-case nil
company-clang-arguments (quote ("-I/usr/include" "-I/usr/arm-frc-linux-gnueabi/include/"))) company-clang-arguments (quote ("-I/usr/include" "-I/usr/arm-frc-linux-gnueabi/include/")))
(global-set-key (kbd "<C-tab>") 'company-manual-begin)) (global-set-key (kbd "<C-tab>") 'company-manual-begin))
(use-package smart-mode-line :quelpa (use-package smart-mode-line :quelpa
:config :config
(setq sml/no-confirm-load-theme t) (setq sml/no-confirm-load-theme t)
@ -87,6 +90,7 @@
(add-to-list 'sml/replacer-regexp-list '("^:Doc:Google Drive/" ":GDrive:") t) (add-to-list 'sml/replacer-regexp-list '("^:Doc:Google Drive/" ":GDrive:") t)
(add-to-list 'sml/replacer-regexp-list '("^:GDrive:Dublin2014-2015/" ":Dublin:") t) (add-to-list 'sml/replacer-regexp-list '("^:GDrive:Dublin2014-2015/" ":Dublin:") t)
(setq rm-blacklist '(" company" " Undo-Tree"))) (setq rm-blacklist '(" company" " Undo-Tree")))
(use-package avy :quelpa (use-package avy :quelpa
:config :config
(eval-after-load "isearch" (eval-after-load "isearch"
@ -97,38 +101,49 @@
:bind ("M-x" . smex) :bind ("M-x" . smex)
:bind ("M-X" . smex-major-mode-commands) :bind ("M-X" . smex-major-mode-commands)
:config (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)) ;;normal M-x. :config (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)) ;;normal M-x.
(use-package ace-window :quelpa (use-package ace-window :quelpa
:bind ("M-p" . ace-window)) :bind ("M-p" . ace-window))
(use-package undo-tree :quelpa (use-package undo-tree :quelpa
:config :config
(global-undo-tree-mode) (global-undo-tree-mode)
(global-set-key (kbd "M-/") 'undo-tree-visualize)) (global-set-key (kbd "M-/") 'undo-tree-visualize))
(use-package hydra :quelpa (use-package hydra :quelpa
:config :config
;config is in separate file because it is really big ;config is in separate file because it is really big
(load-file "~/.emacs.d/init-hydra.el")) (load-file "~/.emacs.d/init-hydra.el"))
(use-package multiple-cursors :quelpa) (use-package multiple-cursors :quelpa)
(use-package expand-region :quelpa (use-package expand-region :quelpa
:bind ("C-=" . er/expand-region)) :bind ("C-=" . er/expand-region))
(use-package company-quickhelp :quelpa (use-package company-quickhelp :quelpa
:config :config
(company-quickhelp-mode 1) (company-quickhelp-mode 1)
(setq company-quickhelp-delay 0.5)) (setq company-quickhelp-delay 0.5))
(use-package magit :quelpa (use-package magit :quelpa
:bind ("C-x g" . magit-status)) :bind ("C-x g" . magit-status))
(use-package popwin :quelpa (use-package popwin :quelpa
:config :config
(popwin-mode 1)) (popwin-mode 1))
(use-package cat-mode :quelpa (use-package cat-mode :quelpa
(cat-mode :fetcher github :repo "ad1217/emacs-cat-mode") (cat-mode :fetcher github :repo "ad1217/emacs-cat-mode")
:config :config
(cat-mode 1) (cat-mode 1)
(define-key ibuffer-mode-map (kbd "c") 'cat-set-ibuffer)) (define-key ibuffer-mode-map (kbd "c") 'cat-set-ibuffer))
(use-package dired+ :quelpa (use-package dired+ :quelpa
:init :init
(setq diredp-hide-details-initially-flag nil) (setq diredp-hide-details-initially-flag nil)
:config :config
(toggle-diredp-find-file-reuse-dir 1)) (toggle-diredp-find-file-reuse-dir 1))
(use-package outline-magic :quelpa (use-package outline-magic :quelpa
:config :config
(define-key outline-minor-mode-map (kbd "M-<tab>") 'outline-cycle)) (define-key outline-minor-mode-map (kbd "M-<tab>") 'outline-cycle))
@ -137,6 +152,7 @@
(use-package arduino-mode (use-package arduino-mode
:mode "\\.pde\\'" :mode "\\.pde\\'"
:mode "\\.ino\\'") :mode "\\.ino\\'")
(use-package company-jedi (use-package company-jedi
:init :init
(add-hook 'python-mode-hook (lambda() (add-hook 'python-mode-hook (lambda()
@ -146,8 +162,10 @@
jedi:get-in-function-call-delay 500 jedi:get-in-function-call-delay 500
jedi:tooltip-method nil) jedi:tooltip-method nil)
:commands (jedi-mode)) :commands (jedi-mode))
(use-package gnuplot-mode (use-package gnuplot-mode
:mode ("\\.gp$" . gnuplot-mode)) :mode ("\\.gp$" . gnuplot-mode))
(use-package markdown-mode (use-package markdown-mode
:config :config
(setq markdown-command "markdown_py -x markdown.extensions.wikilinks -x markdown.extensions.smarty -x markdown.extensions.extra -x latex -x markdown.extensions.sane_lists -x markdown.extensions.toc -x markdown_checklist.extension -c ~/.emacs.d/markdownConfig.yml" (setq markdown-command "markdown_py -x markdown.extensions.wikilinks -x markdown.extensions.smarty -x markdown.extensions.extra -x latex -x markdown.extensions.sane_lists -x markdown.extensions.toc -x markdown_checklist.extension -c ~/.emacs.d/markdownConfig.yml"
@ -155,6 +173,7 @@
(local-set-key (kbd "<tab>") 'markdown-demote) (local-set-key (kbd "<tab>") 'markdown-demote)
(local-set-key (kbd "S-<tab>") 'markdown-promote) (local-set-key (kbd "S-<tab>") 'markdown-promote)
:mode "\\.md\\'") :mode "\\.md\\'")
(use-package scad-mode (use-package scad-mode
:mode "\\.scad$" :mode "\\.scad$"
:config :config
@ -163,9 +182,11 @@
(interactive (list (completing-read "Extension: " '("stl" "off" "amf" "dxf" "svg" "csg" "png")))) (interactive (list (completing-read "Extension: " '("stl" "off" "amf" "dxf" "svg" "csg" "png"))))
(compile (concat scad-command " -o " (file-name-sans-extension buffer-file-name) "." ext " " buffer-file-name))) (compile (concat scad-command " -o " (file-name-sans-extension buffer-file-name) "." ext " " buffer-file-name)))
(define-key scad-mode-map (kbd "C-c z") 'scad-compile)) (define-key scad-mode-map (kbd "C-c z") 'scad-compile))
(use-package smart-tabs-mode (use-package smart-tabs-mode
:config :config
(smart-tabs-insinuate 'c 'c++ 'javascript)) (smart-tabs-insinuate 'c 'c++ 'javascript))
(use-package todotxt-mode (use-package todotxt-mode
:config :config
(setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt") (setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt")
@ -187,6 +208,7 @@
("#\\w+" . font-lock-comment-face) ("#\\w+" . font-lock-comment-face)
("-\\([a-zA-Z_-]+\\)" . font-lock-variable-name-face) ("-\\([a-zA-Z_-]+\\)" . font-lock-variable-name-face)
("^[0-9]+-[0-9]+-[0-9]+" 0 '(:foreground "gray90"))))) ("^[0-9]+-[0-9]+-[0-9]+" 0 '(:foreground "gray90")))))
(use-package latex (use-package latex
:config :config
(setq TeX-command-extra-options "-shell-escape") (setq TeX-command-extra-options "-shell-escape")
@ -206,11 +228,13 @@
(replace-regexp "\t" " & " nil beg (point-at-eol)) (replace-regexp "\t" " & " nil beg (point-at-eol))
(replace-regexp "$" " \\\\\\\\" nil beg (point-at-eol)) (replace-regexp "$" " \\\\\\\\" nil beg (point-at-eol))
(align beg (point)))))) (align beg (point))))))
(use-package fasd (use-package fasd
:config :config
(global-set-key (kbd "C-x C-S-f") 'fasd-find-file) (global-set-key (kbd "C-x C-S-f") 'fasd-find-file)
(global-fasd-mode 1) (global-fasd-mode 1)
(setq fasd-enable-initial-prompt nil)) (setq fasd-enable-initial-prompt nil))
(use-package yasnippet (use-package yasnippet
:defer :defer
:init :init
@ -225,21 +249,25 @@
(interactive) (interactive)
(company-abort) (company-abort)
(call-interactively 'company-yasnippet))) (call-interactively 'company-yasnippet)))
(use-package swiper (use-package swiper
:bind ("C-S-s" . swiper) :bind ("C-S-s" . swiper)
:bind ("C-S-r" . swiper)) :bind ("C-S-r" . swiper))
(use-package helm-dash (use-package helm-dash
:config :config
(setq helm-dash-browser-func 'eww (setq helm-dash-browser-func 'eww
helm-dash-enable-debugging nil) helm-dash-enable-debugging nil)
(add-hook 'python-mode-hook (add-hook 'python-mode-hook
'(lambda ()(setq-local helm-dash-docsets '("Python 3"))))) '(lambda ()(setq-local helm-dash-docsets '("Python 3")))))
(use-package pkgbuild-mode (use-package pkgbuild-mode
:config :config
(setq pkgbuild-user-full-name "Adam Goldsmith" (setq pkgbuild-user-full-name "Adam Goldsmith"
pkgbuild-user-mail-address "contact@adamgoldsmith.name" pkgbuild-user-mail-address "contact@adamgoldsmith.name"
pkgbuild-makepkg-command "PKGEXT='.pkg.tar' makepkg -mf")) pkgbuild-makepkg-command "PKGEXT='.pkg.tar' makepkg -mf"))
;;; Local Variables ;;; Local Variables
(add-to-list 'safe-local-eval-forms '(outline-hide-body)) (add-to-list 'safe-local-eval-forms '(outline-hide-body))
;; Local Variables: ;; Local Variables: