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