forked from colonelpanic/dotfiles
lazify some more stuff with use-package.
This commit is contained in:
parent
702b0319a4
commit
4127476953
46
init.el
46
init.el
@ -70,7 +70,7 @@
|
|||||||
(package-initialize)
|
(package-initialize)
|
||||||
(ensure-packages-installed '(epl use-package))
|
(ensure-packages-installed '(epl use-package))
|
||||||
(require 'use-package)
|
(require 'use-package)
|
||||||
;; (use-package benchmark-init :ensure t)
|
(use-package benchmark-init :ensure t)
|
||||||
|
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
;; Disables
|
;; Disables
|
||||||
@ -253,8 +253,10 @@ buffer is not visiting a file."
|
|||||||
;; Make mouse scrolling less jumpy.
|
;; Make mouse scrolling less jumpy.
|
||||||
(setq mouse-wheel-scroll-amount '(1 ((shift) . 1)))
|
(setq mouse-wheel-scroll-amount '(1 ((shift) . 1)))
|
||||||
|
|
||||||
(require 'tramp)
|
(use-package tramp
|
||||||
(setq tramp-default-method "ssh")
|
:commands tramp
|
||||||
|
:config
|
||||||
|
(setq tramp-default-method "ssh"))
|
||||||
|
|
||||||
;; text mode stuff:
|
;; text mode stuff:
|
||||||
(remove-hook 'text-mode-hook #'turn-on-auto-fill)
|
(remove-hook 'text-mode-hook #'turn-on-auto-fill)
|
||||||
@ -341,6 +343,16 @@ buffer is not visiting a file."
|
|||||||
:bind (("C-c k" . er/expand-region)))
|
:bind (("C-c k" . er/expand-region)))
|
||||||
|
|
||||||
(use-package multiple-cursors
|
(use-package multiple-cursors
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(use-package phi-search-mc
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(phi-search-mc/setup-keys))
|
||||||
|
(use-package mc-extras
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(define-key mc/keymap (kbd "C-. =") 'mc/compare-chars)))
|
||||||
:bind
|
:bind
|
||||||
(("C-c m a" . mc/mark-all-like-this)
|
(("C-c m a" . mc/mark-all-like-this)
|
||||||
("C-c m m" . mc/mark-all-like-this-dwim)
|
("C-c m m" . mc/mark-all-like-this-dwim)
|
||||||
@ -350,16 +362,6 @@ buffer is not visiting a file."
|
|||||||
("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)))
|
||||||
|
|
||||||
(use-package phi-search-mc
|
|
||||||
:ensure t
|
|
||||||
:config
|
|
||||||
(phi-search-mc/setup-keys))
|
|
||||||
|
|
||||||
(use-package mc-extras
|
|
||||||
:ensure t
|
|
||||||
:config
|
|
||||||
(define-key mc/keymap (kbd "C-. =") 'mc/compare-chars))
|
|
||||||
|
|
||||||
(use-package undo-tree
|
(use-package undo-tree
|
||||||
:ensure t
|
:ensure t
|
||||||
:bind ("C-c u" . undo-tree-visualize)
|
:bind ("C-c u" . undo-tree-visualize)
|
||||||
@ -414,12 +416,9 @@ buffer is not visiting a file."
|
|||||||
(epa-file-enable))
|
(epa-file-enable))
|
||||||
|
|
||||||
(use-package erc
|
(use-package erc
|
||||||
:ensure t :commands erc
|
|
||||||
:config (use-package erc-colorize :ensure t) (erc-colorize-mode 1)))
|
|
||||||
|
|
||||||
(use-package gnus
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands
|
:commands erc
|
||||||
|
:config (progn (use-package erc-colorize :ensure t) (erc-colorize-mode 1)))
|
||||||
|
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
;; Programming Mode Hooks
|
;; Programming Mode Hooks
|
||||||
@ -467,6 +466,7 @@ buffer is not visiting a file."
|
|||||||
:config (ido-vertical-mode 1))
|
:config (ido-vertical-mode 1))
|
||||||
(use-package flx
|
(use-package flx
|
||||||
:ensure t
|
:ensure t
|
||||||
|
:commands (smex find-file)
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
;; disable ido faces to see flx highlights.
|
;; disable ido faces to see flx highlights.
|
||||||
@ -639,6 +639,7 @@ buffer is not visiting a file."
|
|||||||
(add-hook 'js2-mode-hook 'skewer-mode)
|
(add-hook 'js2-mode-hook 'skewer-mode)
|
||||||
(add-hook 'js2-mode-hook (lambda () (setq js-indent-level 1)))
|
(add-hook 'js2-mode-hook (lambda () (setq js-indent-level 1)))
|
||||||
(use-package tern
|
(use-package tern
|
||||||
|
:commands tern-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(progn (tern-ac-setup))
|
(progn (tern-ac-setup))
|
||||||
@ -658,8 +659,6 @@ buffer is not visiting a file."
|
|||||||
(add-hook 'css-mode-hook #'skewer-css-mode)
|
(add-hook 'css-mode-hook #'skewer-css-mode)
|
||||||
(add-hook 'html-mode-hook #'skewer-html-mode)
|
(add-hook 'html-mode-hook #'skewer-html-mode)
|
||||||
|
|
||||||
(eval-after-load 'sgml-mode
|
|
||||||
'(define-key html-mode-map (kbd "C-c b") 'web-beautify-html))
|
|
||||||
(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))
|
||||||
|
|
||||||
@ -706,6 +705,7 @@ buffer is not visiting a file."
|
|||||||
|
|
||||||
(use-package tex-site
|
(use-package tex-site
|
||||||
:ensure auctex
|
:ensure auctex
|
||||||
|
:commands TeX-mode
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq TeX-auto-save t)
|
(setq TeX-auto-save t)
|
||||||
@ -724,7 +724,11 @@ buffer is not visiting a file."
|
|||||||
:mode (("\\.yaml\\'" . yaml-mode)
|
:mode (("\\.yaml\\'" . yaml-mode)
|
||||||
("\\.yml\\'" . yaml-mode)))
|
("\\.yml\\'" . yaml-mode)))
|
||||||
|
|
||||||
(use-package sgml-mode :ensure t)
|
(use-package sgml-mode
|
||||||
|
:ensure t
|
||||||
|
:commands sgml-mode
|
||||||
|
:bind ("C-c b" . web-beautify-html))
|
||||||
|
|
||||||
(use-package gitconfig-mode :ensure t :mode "\\.gitconfig\\'")
|
(use-package gitconfig-mode :ensure t :mode "\\.gitconfig\\'")
|
||||||
|
|
||||||
(use-package evil :ensure t :commands (evil-mode))
|
(use-package evil :ensure t :commands (evil-mode))
|
||||||
|
Loading…
Reference in New Issue
Block a user