Clean up modules files
This commit is contained in:
parent
0866925ad1
commit
654f6480e9
@ -20,7 +20,6 @@
|
||||
'(duplicate-thing
|
||||
expand-region
|
||||
fill-column-indicator
|
||||
rainbow-mode
|
||||
undo-tree
|
||||
volatile-highlights
|
||||
whole-line-or-region
|
||||
@ -52,29 +51,21 @@
|
||||
;; Column indicator.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
||||
(defun fci-mode-unless-large-file ()
|
||||
"Enable fci-mode unless the file is too large."
|
||||
(interactive)
|
||||
(unless (> (count-lines (point-min) (point-max)) 9999)
|
||||
(fci-mode)))
|
||||
|
||||
|
||||
(use-package fill-column-indicator
|
||||
:defer t
|
||||
:bind
|
||||
(("C-x t f" . fci-mode))
|
||||
:init
|
||||
;; (defun fci-mode-unless-large-file ()
|
||||
;; "Enable fci-mode unless the file is too large."
|
||||
;; (interactive)
|
||||
;; (unless (> (count-lines (point-min) (point-max)) 9999)
|
||||
;; (fci-mode)))
|
||||
|
||||
;; (add-hook 'prog-mode-hook 'fci-mode-unless-large-file)
|
||||
;; (add-hook 'text-mode-hook 'fci-mode-unless-large-file)
|
||||
)
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Rainbow mode.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
||||
(use-package rainbow-mode
|
||||
:defer t)
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Undo tree. To undo "C-\", to redo "C-_", undo tree "C-x u".
|
||||
;; --------------------------------------------------------------------------
|
||||
|
@ -25,6 +25,14 @@
|
||||
|
||||
(defun init-packages/init-files ()
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; View large files.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
||||
(use-package vlf-integrate
|
||||
:init
|
||||
(setq-default vlf-application 'dont-ask))
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Large file threshold.
|
||||
;; --------------------------------------------------------------------------
|
||||
@ -97,14 +105,6 @@
|
||||
(recentf-mode 1)
|
||||
(use-package recentf-ext)
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; View large files.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
||||
(use-package vlf-integrate
|
||||
:config
|
||||
(setq-default vlf-application 'dont-ask))
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Remember location in file.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
@ -18,8 +18,8 @@
|
||||
(setq init-packages/helm-packages
|
||||
|
||||
'(helm
|
||||
helm-projectile
|
||||
helm-descbinds)
|
||||
helm-descbinds
|
||||
helm-projectile)
|
||||
|
||||
)
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
(setq init-packages/parentheses-packages
|
||||
|
||||
'(rainbow-delimiters
|
||||
highlight-parentheses
|
||||
'(highlight-parentheses
|
||||
rainbow-delimiters
|
||||
smartparens)
|
||||
|
||||
)
|
||||
@ -28,15 +28,6 @@
|
||||
|
||||
(defun init-packages/init-parentheses ()
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Rainbow delimiters - colours are set by theme.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
||||
(use-package rainbow-delimiters
|
||||
:defer t
|
||||
:init
|
||||
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode))
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Highlight parentheses - this package does not use faces for colours,
|
||||
;; instead it uses the `hl-parens-colors' variable. This can be set in the
|
||||
@ -48,6 +39,19 @@
|
||||
:init
|
||||
(add-hook 'prog-mode-hook 'highlight-parentheses-mode))
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Rainbow delimiters - colours are set by theme.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
||||
(use-package rainbow-delimiters
|
||||
:defer t
|
||||
:init
|
||||
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode))
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Smartparens highlighting.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
||||
(use-package smartparens
|
||||
:init
|
||||
(smartparens-global-mode t)
|
||||
|
Reference in New Issue
Block a user