forked from colonelpanic/dotfiles
Separate all use-package calls into their own source blocks
This commit is contained in:
parent
b96ecb07bc
commit
8972c62bc0
@ -139,6 +139,16 @@ This appears here so that it can accurately benchmark as much of startup as poss
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Miscellaneous
|
** Miscellaneous
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(setq-default c-basic-offset 4
|
||||||
|
tab-width 4
|
||||||
|
indent-tabs-mode t)
|
||||||
|
|
||||||
|
(add-hook 'prog-mode-hook (lambda () (auto-fill-mode -1)))
|
||||||
|
;; (add-hook 'prog-mode-hook 'flyspell-prog-mode)
|
||||||
|
|
||||||
|
;; (add-hook 'prog-mode-hook (lambda () (highlight-lines-matching-regexp
|
||||||
|
;; ".\\{81\\}" 'hi-blue)))
|
||||||
|
|
||||||
(setq visible-bell nil)
|
(setq visible-bell nil)
|
||||||
(setq sentence-end-double-space nil)
|
(setq sentence-end-double-space nil)
|
||||||
|
|
||||||
@ -567,19 +577,116 @@ Prefix alternatives is a macro that builds a function that selects one of a coll
|
|||||||
(imalison:prefix-alternatives imalison:mark-ring helm-mark-ring helm-global-mark-ring)
|
(imalison:prefix-alternatives imalison:mark-ring helm-mark-ring helm-global-mark-ring)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Macros
|
* Macros
|
||||||
** extract-current-sexp-to-src-block
|
** For editing literate config
|
||||||
|
*** extract-current-sexp-to-src-block
|
||||||
This keyboard macro extracts the current sexp to an emacs-lisp source block of its own
|
This keyboard macro extracts the current sexp to an emacs-lisp source block of its own
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(fset 'extract-current-sexp-to-src-block
|
(fset 'extract-current-sexp-to-src-block
|
||||||
[?\C-a return ?\C-p ?# ?+ ?E ?N ?D ?_ ?S ?R ?C return ?# ?+ ?B ?E ?G ?I ?N ?_ ?S ?R ?C ? ?e ?m ?a ?c ?s ?- ?l ?i ?s ?p ?\C-a ?\C-p ?\C- ?\C-n ?\C-e ?\M-w ?\C-n ?\C-a ?\C-\M-f return ?\C-y])
|
[?\C-a return ?\C-p ?# ?+ ?E ?N ?D ?_ ?S ?R ?C return ?# ?+ ?B ?E ?G ?I ?N ?_ ?S ?R ?C ? ?e ?m ?a ?c ?s ?- ?l ?i ?s ?p ?\C-a ?\C-p ?\C- ?\C-n ?\C-e ?\M-w ?\C-n ?\C-a ?\C-\M-f return ?\C-y])
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** name-source-block-for-use-package-name
|
*** name-source-block-for-use-package-name
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(fset 'name-source-block-for-use-package-name
|
(fset 'name-source-block-for-use-package-name
|
||||||
[?\C-c ?\' ?\M-< ?\C-s ?u ?s ?e ?- ?p ?a ?c ?k return ?\C-\M-f ?\C-f ?\C- ?\C-\M-f ?\M-w ?\C-c ?\' ?\C-r ?B ?E ?G ?I ?N return ?\C-a ?\C-p ?\C-e return ?* ? ?\C-y])
|
[?\C-c ?\' ?\M-< ?\C-s ?u ?s ?e ?- ?p ?a ?c ?k return ?\C-\M-f ?\C-f ?\C- ?\C-\M-f ?\M-w ?\C-c ?\' ?\C-r ?B ?E ?G ?I ?N return ?\C-a ?\C-p ?\C-e return ?* ? ?\C-y])
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** extract-and-name-use-package-block
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(fset 'extract-and-name-use-package-block
|
||||||
|
[?\C-a return ?\C-p ?# ?+ ?E ?N ?D ?_ ?S ?R ?C return ?# ?+ ?B ?E ?G ?I ?N ?_ ?S ?R ?C ? ?e ?m ?a ?c ?s ?- ?l ?i ?s ?p ?\C-a ?\C-p ?\C- ?\C-n ?\C-e ?\M-w ?\C-n ?\C-a ?\C-\M-f return ?\C-y ?\C-p ?\C-p ?\C-c ?\' ?\M-< ?\C-s ?u ?s ?e ?- ?p ?a ?c ?k return ?\C-\M-f ?\C-f ?\C- ?\C-\M-f ?\M-w ?\C-c ?\' ?\C-r ?B ?E ?G ?I ?N return ?\C-a ?\C-p ?\C-e return ?* ? ?\C-y])
|
||||||
|
#+END_SRC
|
||||||
* Packages
|
* Packages
|
||||||
|
** Emacs Specific
|
||||||
|
*** paradox
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package paradox
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(setq paradox-execute-asynchronously t)))
|
||||||
|
#+END_SRC
|
||||||
|
*** diminish
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package diminish
|
||||||
|
:preface
|
||||||
|
(defvar imalison:packages-to-diminish
|
||||||
|
'(auto-revert-mode smartparens-mode eldoc-mode tern-mode js2-refactor-mode))
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(cl-loop for package in imalison:packages-to-diminish
|
||||||
|
do (diminish package))
|
||||||
|
(eval-after-load 'subword '(diminish 'subword-mode))
|
||||||
|
(eval-after-load 'simple '(diminish 'visual-line-mode))))
|
||||||
|
#+END_SRC
|
||||||
|
*** edit-server
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package edit-server
|
||||||
|
:commands edit-server-start
|
||||||
|
:defer 1
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(edit-server-start)
|
||||||
|
(setq edit-server-new-frame nil)))
|
||||||
|
#+END_SRC
|
||||||
|
*** server
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package server
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(unless (server-running-p) (server-start))))
|
||||||
|
#+END_SRC
|
||||||
|
*** list-environment
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package list-environment)
|
||||||
|
#+END_SRC
|
||||||
|
*** bind-key
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package bind-key)
|
||||||
|
#+END_SRC
|
||||||
|
*** which-key
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package which-key
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(setq which-key-idle-delay .50)
|
||||||
|
(diminish 'which-key-mode)
|
||||||
|
(which-key-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
*** exec-path-from-shell
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package exec-path-from-shell
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(add-to-list 'exec-path-from-shell-variables "GOPATH")
|
||||||
|
(exec-path-from-shell-initialize)))
|
||||||
|
#+END_SRC
|
||||||
|
*** bug-hunter
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package bug-hunter)
|
||||||
|
#+END_SRC
|
||||||
|
*** shackle
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package shackle
|
||||||
|
:disabled t
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(diminish 'shackle-mode)
|
||||||
|
(when nil ; disabled for now
|
||||||
|
(shackle-mode))
|
||||||
|
(setq shackle-inhibit-window-quit-on-same-windows t)
|
||||||
|
(setq shackle-default-rule '(:same t))))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
*** beacon
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package beacon
|
||||||
|
:bind ("C-c b" . beacon-blink)
|
||||||
|
:config
|
||||||
|
(beacon-mode 1))
|
||||||
|
#+END_SRC
|
||||||
|
*** discover-my-major
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package discover-my-major)
|
||||||
|
#+END_SRC
|
||||||
** General
|
** General
|
||||||
*** org
|
*** org
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -995,19 +1102,6 @@ This keyboard macro extracts the current sexp to an emacs-lisp source block of i
|
|||||||
(add-hook 'org-mode-hook (lambda () (setq org-todo-key-trigger t)))
|
(add-hook 'org-mode-hook (lambda () (setq org-todo-key-trigger t)))
|
||||||
(add-hook 'org-agenda-mode-hook 'imalison:disable-linum-mode)))
|
(add-hook 'org-agenda-mode-hook 'imalison:disable-linum-mode)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** diminish
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(use-package diminish
|
|
||||||
:preface
|
|
||||||
(defvar imalison:packages-to-diminish
|
|
||||||
'(auto-revert-mode smartparens-mode eldoc-mode tern-mode js2-refactor-mode))
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(cl-loop for package in imalison:packages-to-diminish
|
|
||||||
do (diminish package))
|
|
||||||
(eval-after-load 'subword '(diminish 'subword-mode))
|
|
||||||
(eval-after-load 'simple '(diminish 'visual-line-mode))))
|
|
||||||
#+END_SRC
|
|
||||||
** Navigation/Completion
|
** Navigation/Completion
|
||||||
*** helm
|
*** helm
|
||||||
I use helm for almost all emacs completion
|
I use helm for almost all emacs completion
|
||||||
@ -1206,6 +1300,23 @@ I use helm for almost all emacs completion
|
|||||||
("M-g l" . avy-goto-line)
|
("M-g l" . avy-goto-line)
|
||||||
("C-'" . avy-goto-char-2)))
|
("C-'" . avy-goto-char-2)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** ace-window
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package ace-window
|
||||||
|
:preface
|
||||||
|
(imalison:prefix-alternatives imalison:ace-window ace-select-window ace-swap-window)
|
||||||
|
:config (setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l))
|
||||||
|
:bind ("C-c w" . imalison:ace-window))
|
||||||
|
#+END_SRC
|
||||||
|
*** neotree
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package neotree)
|
||||||
|
#+END_SRC
|
||||||
|
*** jump-char
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package jump-char
|
||||||
|
:bind (("C-;" . jump-char-forward)))
|
||||||
|
#+END_SRC
|
||||||
** Text Manipulation
|
** Text Manipulation
|
||||||
*** smartparens
|
*** smartparens
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -1241,6 +1352,10 @@ I use helm for almost all emacs completion
|
|||||||
:config
|
:config
|
||||||
:init (add-hook 'magit-status-mode-hook 'magit-filenotify-mode))))
|
:init (add-hook 'magit-status-mode-hook 'magit-filenotify-mode))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** gist
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package gist)
|
||||||
|
#+END_SRC
|
||||||
** Programming
|
** Programming
|
||||||
*** Language Specific
|
*** Language Specific
|
||||||
**** python
|
**** python
|
||||||
@ -1576,6 +1691,14 @@ I use helm for almost all emacs completion
|
|||||||
(add-hook 'rust-mode-hook 'cargo-minor-mode)))
|
(add-hook 'rust-mode-hook 'cargo-minor-mode)))
|
||||||
(add-hook 'rust-mode-hook 'imalison:rust-mode-hook)))
|
(add-hook 'rust-mode-hook 'imalison:rust-mode-hook)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
**** haskell
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package haskell-mode
|
||||||
|
:commands haskell-mode
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)))
|
||||||
|
#+END_SRC
|
||||||
**** Other
|
**** Other
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defvar packages-eager
|
(defvar packages-eager
|
||||||
@ -1590,7 +1713,25 @@ realgud provides debugging support with many external debuggers in emacs
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package realgud)
|
(use-package realgud)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
**** emr
|
||||||
|
emr (emacs refactor) provides support for refactoring in many programming languages
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package emr
|
||||||
|
:commands emr-initialize
|
||||||
|
:bind (:map prog-mode-map
|
||||||
|
("M-RET" . emr-show-refactor-menu))
|
||||||
|
:init (emr-initialize))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Utility
|
** Utility
|
||||||
|
*** term
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package term
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(add-hook 'term-mode-hook 'imalison:disable-linum-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** term-manager
|
*** term-manager
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package term-manager
|
(use-package term-manager
|
||||||
@ -1638,44 +1779,18 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(crux-reopen-as-root-mode)))
|
(crux-reopen-as-root-mode)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Other
|
** Other
|
||||||
|
*** iedit
|
||||||
|
I don't use iedit directly, but it is used by [[*emr][emr]] and I need to disable ~iedit-toggle-key-default~ or else a buffer pops up complaing that the key has been bound to something else
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package neotree)
|
|
||||||
|
|
||||||
(use-package gist)
|
|
||||||
|
|
||||||
(use-package bind-key)
|
|
||||||
|
|
||||||
(use-package bug-hunter)
|
|
||||||
|
|
||||||
(use-package iedit
|
(use-package iedit
|
||||||
:demand
|
:demand
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq iedit-toggle-key-default nil)))
|
(setq iedit-toggle-key-default nil)))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
(use-package server
|
*** yasnippet
|
||||||
:config
|
#+BEGIN_SRC emacs-lisp
|
||||||
(progn
|
|
||||||
(unless (server-running-p) (server-start))))
|
|
||||||
|
|
||||||
(use-package list-environment)
|
|
||||||
|
|
||||||
(use-package paradox
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(setq paradox-execute-asynchronously t)))
|
|
||||||
|
|
||||||
(use-package term
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(add-hook 'term-mode-hook 'imalison:disable-linum-mode)))
|
|
||||||
|
|
||||||
(use-package exec-path-from-shell
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(add-to-list 'exec-path-from-shell-variables "GOPATH")
|
|
||||||
(exec-path-from-shell-initialize)))
|
|
||||||
|
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
:defer 5
|
:defer 5
|
||||||
:commands (yas-global-mode)
|
:commands (yas-global-mode)
|
||||||
@ -1688,44 +1803,17 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(cons 'yas-ido-prompt
|
(cons 'yas-ido-prompt
|
||||||
(cl-delete 'yas-ido-prompt yas-prompt-functions)))))
|
(cl-delete 'yas-ido-prompt yas-prompt-functions)))))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
*** tramp
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package tramp
|
(use-package tramp
|
||||||
:commands tramp
|
:commands tramp
|
||||||
:config
|
:config
|
||||||
(setq tramp-default-method "scp"))
|
(setq tramp-default-method "scp"))
|
||||||
|
#+END_SRC
|
||||||
(use-package shackle
|
*** flycheck
|
||||||
:disabled t
|
#+BEGIN_SRC emacs-lisp
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(diminish 'shackle-mode)
|
|
||||||
(when nil ; disabled for now
|
|
||||||
(shackle-mode))
|
|
||||||
(setq shackle-inhibit-window-quit-on-same-windows t)
|
|
||||||
(setq shackle-default-rule '(:same t))))
|
|
||||||
|
|
||||||
(use-package beacon
|
|
||||||
:bind ("C-c b" . beacon-blink)
|
|
||||||
:config
|
|
||||||
(beacon-mode 1))
|
|
||||||
|
|
||||||
(use-package discover-my-major)
|
|
||||||
|
|
||||||
(use-package which-key
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(setq which-key-idle-delay .50)
|
|
||||||
(diminish 'which-key-mode)
|
|
||||||
(which-key-mode)))
|
|
||||||
|
|
||||||
(use-package jump-char
|
|
||||||
:bind (("C-;" . jump-char-forward)))
|
|
||||||
|
|
||||||
(use-package ace-window
|
|
||||||
:preface
|
|
||||||
(imalison:prefix-alternatives imalison:ace-window ace-select-window ace-swap-window)
|
|
||||||
:config (setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l))
|
|
||||||
:bind ("C-c w" . imalison:ace-window))
|
|
||||||
|
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
@ -1733,14 +1821,9 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(use-package flycheck-package
|
(use-package flycheck-package
|
||||||
:config (flycheck-package-setup)))
|
:config (flycheck-package-setup)))
|
||||||
:diminish flycheck-mode)
|
:diminish flycheck-mode)
|
||||||
|
#+END_SRC
|
||||||
|
*** narrow-indirect
|
||||||
(use-package haskell-mode
|
#+BEGIN_SRC emacs-lisp
|
||||||
:commands haskell-mode
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)))
|
|
||||||
|
|
||||||
(use-package narrow-indirect
|
(use-package narrow-indirect
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
@ -1755,24 +1838,37 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(use-package dtrt-indent
|
(use-package dtrt-indent
|
||||||
:init (add-hook 'prog-mode-hook 'dtrt-indent-mode))
|
:init (add-hook 'prog-mode-hook 'dtrt-indent-mode))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*8* indent-guide
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package indent-guide
|
(use-package indent-guide
|
||||||
:disabled t
|
:disabled t
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(indent-guide-global-mode -1)
|
(indent-guide-global-mode -1)
|
||||||
(setq indent-guide-delay 0.1)))
|
(setq indent-guide-delay 0.1)))
|
||||||
|
#+END_SRC
|
||||||
|
*** rainbow-delimiters
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package rainbow-delimiters
|
(use-package rainbow-delimiters
|
||||||
:commands rainbow-delimiters-mode
|
:commands rainbow-delimiters-mode
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(add-hook 'prog-mode-hook (lambda () (rainbow-delimiters-mode t)))))
|
(add-hook 'prog-mode-hook (lambda () (rainbow-delimiters-mode t)))))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** git-gutter
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package git-gutter
|
(use-package git-gutter
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(global-git-gutter-mode -1)))
|
(global-git-gutter-mode -1)))
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** gitolite-clone
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package gitolite-clone
|
(use-package gitolite-clone
|
||||||
:demand t
|
:demand t
|
||||||
:preface
|
:preface
|
||||||
@ -1780,19 +1876,33 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(defun gitolite-clone-force-refresh ()
|
(defun gitolite-clone-force-refresh ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(gitolite-clone-get-projects nil nil t))))
|
(gitolite-clone-get-projects nil nil t))))
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package gh
|
(use-package gh
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:load-path "~/Projects/gh.el")
|
:load-path "~/Projects/gh.el")
|
||||||
|
#+END_SRC
|
||||||
|
*** github-clone
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
(use-package github-clone
|
(use-package github-clone
|
||||||
:demand t)
|
:demand t)
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** github-notifier
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package github-notifier
|
(use-package github-notifier
|
||||||
:disabled t
|
:disabled t
|
||||||
:config (github-notifier-mode))
|
:config (github-notifier-mode))
|
||||||
|
#+END_SRC
|
||||||
(use-package company
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
#+END_SRC
|
||||||
|
*** company
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package company
|
||||||
:commands company-mode imalison:company
|
:commands company-mode imalison:company
|
||||||
:bind (("C-\\" . imalison:company))
|
:bind (("C-\\" . imalison:company))
|
||||||
:config
|
:config
|
||||||
@ -1805,11 +1915,19 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
:init
|
:init
|
||||||
(add-hook 'prog-mode-hook (lambda () (company-mode t))))
|
(add-hook 'prog-mode-hook (lambda () (company-mode t))))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** expand-region
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package expand-region
|
(use-package expand-region
|
||||||
:commands er/expand-region
|
:commands er/expand-region
|
||||||
:config (setq expand-region-contract-fast-key "j")
|
:config (setq expand-region-contract-fast-key "j")
|
||||||
:bind (("C-c k" . er/expand-region)))
|
:bind (("C-c k" . er/expand-region)))
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** multiple-cursors
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package multiple-cursors
|
(use-package multiple-cursors
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
@ -1827,6 +1945,8 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
("C-c m p" . mc/mark-previous-like-this)
|
("C-c m p" . mc/mark-previous-like-this)
|
||||||
("C-c m s" . mc/mark-sgml-tag-pair)
|
("C-c m s" . mc/mark-sgml-tag-pair)
|
||||||
("C-c m d" . mc/mark-all-like-this-in-defun)))
|
("C-c m d" . mc/mark-all-like-this-in-defun)))
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
(use-package undo-tree
|
(use-package undo-tree
|
||||||
:disabled t ;; this has been getting pretty annoying
|
:disabled t ;; this has been getting pretty annoying
|
||||||
@ -1894,41 +2014,37 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(use-package comment-dwim-2
|
(use-package comment-dwim-2
|
||||||
:bind ("M-;" . comment-dwim-2))
|
:bind ("M-;" . comment-dwim-2))
|
||||||
|
|
||||||
(use-package emr
|
#+END_SRC
|
||||||
:commands emr-initialize
|
*** git-link
|
||||||
:init
|
#+BEGIN_SRC emacs-lisp
|
||||||
(progn
|
|
||||||
(define-key prog-mode-map (kbd "M-RET") 'emr-show-refactor-menu)
|
|
||||||
(add-hook 'prog-mode-hook 'emr-initialize)))
|
|
||||||
|
|
||||||
(use-package git-link
|
(use-package git-link
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq git-link-use-commit t)))
|
(setq git-link-use-commit t)))
|
||||||
|
#+END_SRC
|
||||||
(use-package phabricator)
|
*** key-chord
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package key-chord)
|
(use-package key-chord)
|
||||||
|
#+END_SRC
|
||||||
|
*** nodejs-repl
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package nodejs-repl)
|
(use-package nodejs-repl)
|
||||||
|
#+END_SRC
|
||||||
|
*** calc-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package calc-mode
|
(use-package calc-mode
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq calc-context-sensitive-enter t)))
|
(setq calc-context-sensitive-enter t)))
|
||||||
|
#+END_SRC
|
||||||
|
*** helm-spotify
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package helm-spotify
|
(use-package helm-spotify
|
||||||
:commands helm-spotify)
|
:commands helm-spotify)
|
||||||
|
#+END_SRC
|
||||||
(use-package edit-server
|
*** jabber
|
||||||
:commands edit-server-start
|
#+BEGIN_SRC emacs-lisp
|
||||||
:defer 1
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(edit-server-start)
|
|
||||||
(setq edit-server-new-frame nil)))
|
|
||||||
|
|
||||||
(use-package jabber
|
(use-package jabber
|
||||||
:commands jabber-connect
|
:commands jabber-connect
|
||||||
:config
|
:config
|
||||||
@ -1941,16 +2057,25 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(format "%s: %s" (jabber-jid-resource from) text)
|
(format "%s: %s" (jabber-jid-resource from) text)
|
||||||
(format "%s: %s" (jabber-jid-displayname from) text))))
|
(format "%s: %s" (jabber-jid-displayname from) text))))
|
||||||
(setq jabber-alert-message-function 'jabber-message-content-message)))
|
(setq jabber-alert-message-function 'jabber-message-content-message)))
|
||||||
|
#+END_SRC
|
||||||
|
*** htmlize
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package htmlize)
|
(use-package htmlize)
|
||||||
|
#+END_SRC
|
||||||
|
*** calfw
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package calfw
|
(use-package calfw
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(require 'calfw-org)))
|
(require 'calfw-org)))
|
||||||
|
#+END_SRC
|
||||||
|
*** clocker
|
||||||
|
Not really sure what this is
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package clocker)
|
(use-package clocker)
|
||||||
|
#+END_SRC
|
||||||
|
*** deft
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package deft
|
(use-package deft
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
@ -1961,7 +2086,8 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(nospace . "_")
|
(nospace . "_")
|
||||||
(case-fn . downcase)))
|
(case-fn . downcase)))
|
||||||
(setq deft-directory "~/SparkleShare/org/notes")))
|
(setq deft-directory "~/SparkleShare/org/notes")))
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package epg
|
(use-package epg
|
||||||
:config
|
:config
|
||||||
(epa-file-enable))
|
(epa-file-enable))
|
||||||
@ -1973,6 +2099,9 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
:disabled t ;; fails to load eieio on startup
|
:disabled t ;; fails to load eieio on startup
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** erc
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package erc
|
(use-package erc
|
||||||
:commands erc
|
:commands erc
|
||||||
:config
|
:config
|
||||||
@ -1983,8 +2112,11 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(setq erc-log-channels-directory "~/Dropbox (Personal)/irclogs")
|
(setq erc-log-channels-directory "~/Dropbox (Personal)/irclogs")
|
||||||
(erc-log-enable)
|
(erc-log-enable)
|
||||||
(use-package erc-colorize) (erc-colorize-mode 1)))
|
(use-package erc-colorize) (erc-colorize-mode 1)))
|
||||||
|
#+END_SRC
|
||||||
|
*** bitlbee
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package bitlbee
|
(use-package bitlbee
|
||||||
|
:disabled t
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(defvar bitlbee-password "geheim")
|
(defvar bitlbee-password "geheim")
|
||||||
@ -1998,10 +2130,15 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(erc-default-target)
|
(erc-default-target)
|
||||||
bitlbee-password))))))
|
bitlbee-password))))))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** s
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package s)
|
(use-package s)
|
||||||
(add-to-list 'load-path (s-trim (shell-command-to-string "mu4e_directory")))
|
#+END_SRC
|
||||||
|
*** mu4e
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package mu4e
|
(use-package mu4e
|
||||||
|
:load-path (s-trim (shell-command-to-string "mu4e_directory"))
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:commands (mu4e mu4e-view-message-with-msgid mu4e-update-index email)
|
:commands (mu4e mu4e-view-message-with-msgid mu4e-update-index email)
|
||||||
:bind ("C-c 0" . email)
|
:bind ("C-c 0" . email)
|
||||||
@ -2099,8 +2236,14 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
smtpmail-smtp-server "smtp.gmail.com"
|
smtpmail-smtp-server "smtp.gmail.com"
|
||||||
smtpmail-smtp-service 587)))
|
smtpmail-smtp-service 587)))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** gmail-message-mode
|
||||||
|
This is useful with server mode when editing gmail messages. I think that it is not currently working, or it may need to be manually enabled.
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package gmail-message-mode)
|
(use-package gmail-message-mode)
|
||||||
|
#+END_SRC
|
||||||
|
*** alert
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package alert
|
(use-package alert
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
@ -2121,7 +2264,9 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(format "emacsclient --server-file='%s' -e '%s'" server-name command))
|
(format "emacsclient --server-file='%s' -e '%s'" server-name command))
|
||||||
|
|
||||||
(setq alert-default-style 'notifier)))
|
(setq alert-default-style 'notifier)))
|
||||||
|
#+END_SRC
|
||||||
|
*** sauron
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package sauron
|
(use-package sauron
|
||||||
:defer 5
|
:defer 5
|
||||||
:commands (sauron-start sauron-start-hidden)
|
:commands (sauron-start sauron-start-hidden)
|
||||||
@ -2163,14 +2308,25 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(sauron-start-hidden)
|
(sauron-start-hidden)
|
||||||
(add-hook 'sauron-event-added-functions 'sauron-alert-el-adapter)))
|
(add-hook 'sauron-event-added-functions 'sauron-alert-el-adapter)))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** screenshot
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package screenshot)
|
(use-package screenshot)
|
||||||
|
#+END_SRC
|
||||||
|
*** floobits
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package floobits)
|
(use-package floobits)
|
||||||
|
#+END_SRC
|
||||||
|
*** wsd-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package wsd-mode)
|
(use-package wsd-mode)
|
||||||
|
#+END_SRC
|
||||||
|
*** libmpdee
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package libmpdee)
|
(use-package libmpdee)
|
||||||
|
#+END_SRC
|
||||||
|
*** flyspell
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package flyspell
|
(use-package flyspell
|
||||||
:disabled t ; kind of annoying
|
:disabled t ; kind of annoying
|
||||||
:preface (setq flyspell-issue-welcome-flag nil)
|
:preface (setq flyspell-issue-welcome-flag nil)
|
||||||
@ -2209,14 +2365,9 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
base-menu)))
|
base-menu)))
|
||||||
(cadr (assoc (popup-menu* menu :scroll-bar t) base-menu))))
|
(cadr (assoc (popup-menu* menu :scroll-bar t) base-menu))))
|
||||||
(fset 'flyspell-emacs-popup 'flyspell-emacs-popup-textual)))
|
(fset 'flyspell-emacs-popup 'flyspell-emacs-popup-textual)))
|
||||||
|
#+END_SRC
|
||||||
(add-hook 'prog-mode-hook (lambda () (auto-fill-mode -1)))
|
*** web-mode
|
||||||
(add-hook 'prog-mode-hook (lambda () (subword-mode t) (diminish 'subword-mode)))
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; (add-hook 'prog-mode-hook 'flyspell-prog-mode)
|
|
||||||
|
|
||||||
;; (add-hook 'prog-mode-hook (lambda () (highlight-lines-matching-regexp
|
|
||||||
;; ".\\{81\\}" 'hi-blue)))
|
|
||||||
|
|
||||||
(use-package web-mode
|
(use-package web-mode
|
||||||
:mode (("\\.tmpl\\'" . web-mode)
|
:mode (("\\.tmpl\\'" . web-mode)
|
||||||
("\\.cql\\'" . web-mode))
|
("\\.cql\\'" . web-mode))
|
||||||
@ -2226,12 +2377,19 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
'(("gtl" . "\\.tmpl\\'")
|
'(("gtl" . "\\.tmpl\\'")
|
||||||
("gtl" . "\\.cql\\'")))))
|
("gtl" . "\\.cql\\'")))))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** helm-themes
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package helm-themes)
|
(use-package helm-themes)
|
||||||
|
#+END_SRC
|
||||||
|
*** helm-swoop
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package helm-swoop
|
(use-package helm-swoop
|
||||||
:bind ("C-S-s" . helm-swoop)
|
:bind ("C-S-s" . helm-swoop)
|
||||||
:commands helm-swoop)
|
:commands helm-swoop)
|
||||||
|
#+END_SRC
|
||||||
|
*** perspective
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package perspective
|
(use-package perspective
|
||||||
:demand t
|
:demand t
|
||||||
:config
|
:config
|
||||||
@ -2276,18 +2434,24 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
|
|
||||||
(define-key persp-mode-map (kbd "C-x b") 'persp-mode-switch-buffers))
|
(define-key persp-mode-map (kbd "C-x b") 'persp-mode-switch-buffers))
|
||||||
:bind ("C-c 9" . persp-switch))
|
:bind ("C-c 9" . persp-switch))
|
||||||
|
#+END_SRC
|
||||||
|
*** smex
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package smex
|
(use-package smex
|
||||||
;; Using helm-M-x instead
|
;; Using helm-M-x instead
|
||||||
:disabled t
|
:disabled t
|
||||||
:commands smex
|
:commands smex
|
||||||
;; This is here because smex feels like part of ido
|
;; This is here because smex feels like part of ido
|
||||||
:bind ("M-x" . smex))
|
:bind ("M-x" . smex))
|
||||||
|
#+END_SRC
|
||||||
|
*** ido
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package ido
|
(use-package ido
|
||||||
|
:if (and (boundp 'use-ido) use-ido)
|
||||||
:commands ido-mode
|
:commands ido-mode
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
|
(ido-mode 1)
|
||||||
(setq ido-auto-merge-work-directories-length -1)
|
(setq ido-auto-merge-work-directories-length -1)
|
||||||
(setq ido-use-filename-at-point nil)
|
(setq ido-use-filename-at-point nil)
|
||||||
(setq ido-create-new-buffer 'always)
|
(setq ido-create-new-buffer 'always)
|
||||||
@ -2312,24 +2476,30 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(ido-vertical-mode 1)
|
(ido-vertical-mode 1)
|
||||||
(setq ido-vertical-define-keys 'C-n-C-p-up-and-down)))
|
(setq ido-vertical-define-keys 'C-n-C-p-up-and-down)))
|
||||||
(use-package flx-ido)))
|
(use-package flx-ido)))
|
||||||
|
#+END_SRC
|
||||||
|
*** java
|
||||||
(when (or (and (boundp 'use-ido) use-ido) (not (boundp 'use-ido))) (ido-mode 1))
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
||||||
(add-hook 'java-mode-hook
|
(add-hook 'java-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq c-basic-offset 4
|
(setq c-basic-offset 4
|
||||||
tab-width 4
|
tab-width 4
|
||||||
indent-tabs-mode t)))
|
indent-tabs-mode t)))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** android-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package android-mode
|
(use-package android-mode
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq android-mode-sdk-dir
|
(setq android-mode-sdk-dir
|
||||||
(s-trim (shell-command-to-string "android_sdk_directory")))))
|
(s-trim (shell-command-to-string "android_sdk_directory")))))
|
||||||
|
#+END_SRC
|
||||||
|
*** gradle-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package gradle-mode)
|
(use-package gradle-mode)
|
||||||
|
#+END_SRC
|
||||||
|
*** json-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package json-mode
|
(use-package json-mode
|
||||||
:mode "\\.json\\'"
|
:mode "\\.json\\'"
|
||||||
:init
|
:init
|
||||||
@ -2337,27 +2507,35 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(lambda ()
|
(lambda ()
|
||||||
(setq indent-tabs-mode nil)
|
(setq indent-tabs-mode nil)
|
||||||
(setq js-indent-level 4))))
|
(setq js-indent-level 4))))
|
||||||
|
#+END_SRC
|
||||||
|
*** jq-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package jq-mode
|
(use-package jq-mode
|
||||||
:mode "\\.jq\\'")
|
:mode "\\.jq\\'")
|
||||||
|
#+END_SRC
|
||||||
|
*** jsx-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package jsx-mode
|
(use-package jsx-mode
|
||||||
:mode "\\.jsx\\'")
|
:mode "\\.jsx\\'")
|
||||||
|
#+END_SRC
|
||||||
|
*** css
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(eval-after-load 'css-mode
|
(eval-after-load 'css-mode
|
||||||
'(define-key css-mode-map (kbd "C-c b") 'web-beautify-css))
|
'(define-key css-mode-map (kbd "C-c b") 'web-beautify-css))
|
||||||
|
#+END_SRC
|
||||||
|
*** robe
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package robe
|
(use-package robe
|
||||||
:commands robe-mode
|
:commands robe-mode
|
||||||
:init
|
:init
|
||||||
(progn (add-hook 'ruby-mode-hook 'robe-mode)))
|
(progn (add-hook 'ruby-mode-hook 'robe-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
*** rinari
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package rinari)
|
(use-package rinari)
|
||||||
|
#+END_SRC
|
||||||
(setq-default c-basic-offset 4
|
*** helm-gtags
|
||||||
tab-width 4
|
#+BEGIN_SRC emacs-lisp
|
||||||
indent-tabs-mode t)
|
|
||||||
|
|
||||||
(use-package helm-gtags
|
(use-package helm-gtags
|
||||||
:disabled t
|
:disabled t
|
||||||
:config (custom-set-variables
|
:config (custom-set-variables
|
||||||
@ -2376,7 +2554,13 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(add-hook 'c-mode-hook 'helm-gtags-mode)
|
(add-hook 'c-mode-hook 'helm-gtags-mode)
|
||||||
(add-hook 'c++-mode-hook 'helm-gtags-mode)
|
(add-hook 'c++-mode-hook 'helm-gtags-mode)
|
||||||
(add-hook 'asm-mode-hook 'helm-gtags-mode)))
|
(add-hook 'asm-mode-hook 'helm-gtags-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
*** tex
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package tex
|
||||||
|
:ensure auctex
|
||||||
|
:preface
|
||||||
|
(progn
|
||||||
(defun guess-TeX-master (filename)
|
(defun guess-TeX-master (filename)
|
||||||
"Guess the master file for FILENAME from currently open .tex files."
|
"Guess the master file for FILENAME from currently open .tex files."
|
||||||
(let ((candidate nil)
|
(let ((candidate nil)
|
||||||
@ -2401,10 +2585,7 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
candidate))
|
candidate))
|
||||||
|
|
||||||
(defun set-TeX-master ()
|
(defun set-TeX-master ()
|
||||||
(setq TeX-master (guess-TeX-master (buffer-file-name))))
|
(setq TeX-master (guess-TeX-master (buffer-file-name)))))
|
||||||
|
|
||||||
(use-package tex
|
|
||||||
:ensure auctex
|
|
||||||
:commands TeX-mode
|
:commands TeX-mode
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
@ -2416,35 +2597,53 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
|
|||||||
(setq TeX-PDF-mode t)
|
(setq TeX-PDF-mode t)
|
||||||
(TeX-global-PDF-mode t)
|
(TeX-global-PDF-mode t)
|
||||||
(setq-default TeX-master nil)))
|
(setq-default TeX-master nil)))
|
||||||
|
#+END_SRC
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
#+END_SRC
|
||||||
|
*** latex
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package latex
|
(use-package latex
|
||||||
:ensure auctex
|
:ensure auctex
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(unbind-key "C-j" LaTeX-mode-map)))
|
(unbind-key "C-j" LaTeX-mode-map)))
|
||||||
|
#+END_SRC
|
||||||
|
*** yaml-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package yaml-mode
|
(use-package yaml-mode
|
||||||
:mode (("\\.yaml\\'" . yaml-mode)
|
:mode (("\\.yaml\\'" . yaml-mode)
|
||||||
("\\.yml\\'" . yaml-mode)))
|
("\\.yml\\'" . yaml-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
*** sgml-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package sgml-mode
|
(use-package sgml-mode
|
||||||
;; :bind ("C-c b" . web-beautify-html) TODO: mode specific, change binding
|
;; :bind ("C-c b" . web-beautify-html) TODO: mode specific, change binding
|
||||||
:commands sgml-mode)
|
:commands sgml-mode)
|
||||||
|
#+END_SRC
|
||||||
|
*** gitconfig-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package gitconfig-mode
|
(use-package gitconfig-mode
|
||||||
:mode "\\.?gitconfig\\'")
|
:mode "\\.?gitconfig\\'")
|
||||||
|
#+END_SRC
|
||||||
|
*** evil
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package evil :commands (evil-mode))
|
(use-package evil :commands (evil-mode))
|
||||||
|
#+END_SRC
|
||||||
|
*** thrift
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package thrift
|
(use-package thrift
|
||||||
:commands thrift-mode
|
:commands thrift-mode
|
||||||
:mode (("\\.thrift\\'" . thrift-mode)))
|
:mode (("\\.thrift\\'" . thrift-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
*** markdown-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package markdown-mode
|
(use-package markdown-mode
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(add-hook 'markdown-mode-hook 'imalison:disable-linum-mode)))
|
(add-hook 'markdown-mode-hook 'imalison:disable-linum-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
*** hackernews
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package hackernews :commands hackernews)
|
(use-package hackernews :commands hackernews)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Keybindings
|
* Keybindings
|
||||||
|
Loading…
Reference in New Issue
Block a user