move crap out of init file

This commit is contained in:
petrucci4prez 2018-07-20 00:50:51 -04:00
parent 509697db2e
commit 94baaf60e2
2 changed files with 40 additions and 69 deletions

View File

@ -53,8 +53,8 @@ work in progress
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package spacemacs-theme (use-package spacemacs-theme
:defer t :defer t
:custom :config
(spacemacs-theme-custom-colors '((lnum . "#64707c")))) (setq spacemacs-theme-custom-colors '((lnum . "#64707c"))))
(defvar nd/theme 'spacemacs-dark) (defvar nd/theme 'spacemacs-dark)
(defvar nd/theme-window-loaded nil) (defvar nd/theme-window-loaded nil)
@ -113,22 +113,20 @@ work in progress
:delight :delight
:init :init
(helm-mode 1) (helm-mode 1)
:custom
(helm-autoresize-max-height 0)
(helm-autoresize-max-height 40)
(helm-M-x-fuzzy-match t)
(helm-buffers-fuzzy-matching t)
(helm-recentf-fuzzy-match t)
(helm-semantic-fuzzy-match t)
(helm-imenu-fuzzy-match t)
(helm-scroll-amount 8)
:config :config
(setq helm-autoresize-max-height 0
helm-autoresize-max-height 40
helm-M-x-fuzzy-match t
helm-buffers-fuzzy-matching t
helm-recentf-fuzzy-match t
helm-semantic-fuzzy-match t
helm-imenu-fuzzy-match t
helm-scroll-amount 8)
(add-to-list 'display-buffer-alist (add-to-list 'display-buffer-alist
`(,(rx bos "*helm" (* not-newline) "*" eos) `(,(rx bos "*helm" (* not-newline) "*" eos)
(display-buffer-in-side-window) (display-buffer-in-side-window)
(inhibit-same-window . t) (inhibit-same-window . t)
(window-height . 0.4))) (window-height . 0.4)))
(helm-autoresize-mode 1) (helm-autoresize-mode 1)
(require 'helm-config)) (require 'helm-config))
#+END_SRC #+END_SRC
@ -146,17 +144,20 @@ work in progress
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package ace-window (use-package ace-window
:ensure t :ensure t
:custom :config
(aw-background t) (setq aw-background t)
:custom-face (set-face-attribute 'aw-leading-char-face nil
(aw-leading-char-face ((t (:foreground "#292b2e" :background "#bc6ec5":height 1.0 :box nil))))) :foreground "#292b2e"
:background "#bc6ec5"
:height 1.0
:box nil))
#+END_SRC #+END_SRC
** avy ** avy
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package avy (use-package avy
:ensure t :ensure t
:custom :config
(avy-background t)) (setq avy-background t))
#+END_SRC #+END_SRC
** sudo edit ** sudo edit
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -171,27 +172,33 @@ work in progress
#+END_SRC #+END_SRC
** calfw ** calfw
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package calfw (use-package calfw
:init :ensure t
:ensure t) :config
(setq cfw:fchar-junction ?╋
cfw:fchar-vertical-line ?┃
cfw:fchar-horizontal-line ?━
cfw:fchar-left-junction ?┣
cfw:fchar-right-junction ?┫
cfw:fchar-top-junction ?┯
cfw:fchar-top-left-corner ?┏
cfw:fchar-top-right-corner ?┓))
#+END_SRC #+END_SRC
** undo tree ** undo tree
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package undo-tree (use-package undo-tree
:ensure t :ensure t
:delight :delight
:custom
(undo-tree-visualizer-diff t)
:config :config
(setq undo-tree-visualizer-diff t)
(global-undo-tree-mode)) (global-undo-tree-mode))
#+END_SRC #+END_SRC
** fill-column-indicator ** fill-column-indicator
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package fill-column-indicator (use-package fill-column-indicator
:ensure t :ensure t
:init :config
:custom (setq fci-rule-use-dashes t)
(fci-rule-use-dashes t)
:hook :hook
(prog-mode . fci-mode)) (prog-mode . fci-mode))
#+END_SRC #+END_SRC
@ -204,11 +211,10 @@ work in progress
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package spaceline (use-package spaceline
:ensure t :ensure t
:custom
(powerline-default-separator 'arrow)
(spaceline-buffer-size-p nil)
:config :config
(require 'spaceline-config) (require 'spaceline-config)
(setq powerline-default-separator 'arrow
spaceline-buffer-size-p nil)
(spaceline-spacemacs-theme)) (spaceline-spacemacs-theme))
#+END_SRC #+END_SRC
* library * library
@ -382,11 +388,9 @@ NOTES:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package haskell-mode (use-package haskell-mode
:ensure t :ensure t
:custom :config
(haskell-compile-command (setq haskell-compile-command "ghc -dynamic -Wall -ferror-spans -fforce-recomp -c %s"
"ghc -dynamic -Wall -ferror-spans -fforce-recomp -c %s" haskell-interactive-popup-errors nil))
"enable dynamic linking by default")
(haskell-interactive-popup-errors nil))
#+END_SRC #+END_SRC
* org-mode * org-mode
** basic ** basic
@ -1667,8 +1671,7 @@ I like being evil. All package and custom bindings go here.
:init :init
(setq evil-collection-modes-list '(dired flycheck company which-key (setq evil-collection-modes-list '(dired flycheck company which-key
helm minibuffer mu4e ediff)) helm minibuffer mu4e ediff))
:custom (setq evil-collection-setup-minibuffer t)
(evil-collection-setup-minibuffer t)
:config :config
(evil-collection-init)) (evil-collection-init))
#+END_SRC #+END_SRC

34
init.el
View File

@ -19,38 +19,6 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(avy-background t)
'(aw-background t)
'(cfw:fchar-horizontal-line 9473)
'(cfw:fchar-junction 9547)
'(cfw:fchar-left-junction 9507)
'(cfw:fchar-right-junction 9515)
'(cfw:fchar-top-junction 9519)
'(cfw:fchar-top-left-corner 9487)
'(cfw:fchar-top-right-corner 9491)
'(cfw:fchar-vertical-line 9475)
'(evil-collection-setup-minibuffer t)
'(fci-rule-use-dashes t)
'(haskell-compile-command "ghc -dynamic -Wall -ferror-spans -fforce-recomp -c %s" t)
'(haskell-interactive-popup-errors nil)
'(helm-M-x-fuzzy-match t)
'(helm-autoresize-max-height 40)
'(helm-buffers-fuzzy-matching t)
'(helm-imenu-fuzzy-match t t)
'(helm-recentf-fuzzy-match t t)
'(helm-scroll-amount 8)
'(helm-semantic-fuzzy-match t t)
'(package-selected-packages '(package-selected-packages
(quote (quote
(yasnippet-snippets flycheck rainbow-delimiters-mode helm evil-collection haskell-mode fill-column-indicator gtklp delight browse-kill-ring evil-org-agenda evil-org evil calfw calfw-org yaml-mode which-key use-package typit systemd sudo-edit spaceline rainbow-mode rainbow-delimiters pkgbuild-mode pdf-tools org-bullets lua-mode ess elpy diff-hl beacon ace-window))) (yasnippet-snippets flycheck rainbow-delimiters-mode helm evil-collection haskell-mode fill-column-indicator gtklp delight browse-kill-ring evil-org-agenda evil-org evil calfw calfw-org yaml-mode which-key use-package typit systemd sudo-edit spaceline rainbow-mode rainbow-delimiters pkgbuild-mode pdf-tools org-bullets lua-mode ess elpy diff-hl beacon ace-window))))
'(powerline-default-separator (quote arrow))
'(spaceline-buffer-size-p nil t)
'(spacemacs-theme-custom-colors (quote ((lnum . "#64707c"))))
'(undo-tree-visualizer-diff t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(aw-leading-char-face ((t (:foreground "#292b2e" :background "#bc6ec5" :height 1.0 :box nil)))))
(put 'dired-find-alternate-file 'disabled nil)