Simplify the folder structure

This commit is contained in:
Maciej 2019-07-16 21:53:58 +03:00
parent fca83b0b97
commit 6ba7c2fa33
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
17 changed files with 99 additions and 87 deletions

View file

@ -2,64 +2,57 @@
;;; Wrap long lines
(toggle-truncate-lines t)
;;; When pasting/writing over a selection, replace it.
(delete-selection-mode 1)
(delete-selection-mode t)
;; When possible, show code documentation
(global-eldoc-mode 1)
(global-eldoc-mode t)
;; Revert tag tables without asking
(setq tags-revert-without-query 1)
(setq tags-revert-without-query t)
;;; Show trailing whitespace and remove whitespace on save
(use-package whitespace
:commands whitespace-mode
:ensure t
:hook (((prog-mode text-mode) . whitespace-mode)
(before-save . whitespace-cleanup))
:init (setq whitespace-style #'(face trailing empty))
:commands whitespace-mode
:ensure t
:defer t
:hook (((prog-mode text-mode) . whitespace-mode)
(before-save . whitespace-cleanup))
:init (setq whitespace-style #'(face trailing empty))
;;; Insert newline on save
(setq require-final-newline t)
(setq require-final-newline t)
;;; Tabs are spaces and are general at 2. Guide indent
;;; with lines
(setq-default indent-tabs-mode nil))
(setq-default indent-tabs-mode nil))
;; Use colorful, matching parens
(use-package rainbow-delimiters
:commands rainbow-delimiters-mode
:ensure t
:hook (((prog-mode text-mode) . rainbow-delimiters-mode))
:init
:commands rainbow-delimiters-mode
:ensure t
:defer t
:hook (((prog-mode text-mode) . rainbow-delimiters-mode))
:init
;;; Match parenthasis (left-right)
(electric-pair-mode 1))
(electric-pair-mode 1))
;;; Show hex colors as colors
;;; Show hex (#aaa) colors as colors
(use-package rainbow-mode
:commands rainbow-mode
:ensure t
:hook ((prog-mode text-mode) . rainbow-mode))
(use-package lsp-mode
:ensure t)
:commands rainbow-mode
:ensure t
:hook ((prog-mode text-mode) . rainbow-mode))
;; Dash integration
(use-package dash-at-point
:commands dash-at-point
:ensure t
:bind (:map prog-mode-map ("C-s C-d" . dash-at-point)
:map text-mode-map ("C-s C-d" . dash-at-point))
:config
(add-to-list 'dash-at-point-mode-alist
;; Configure lookup for Ruby mode
'(enh-ruby-mode . "ruby,rubygems,rails")))
;; Use flycheck globally to check syntax and compile languages
(use-package flycheck
:commands flycheck-define-checker
:commands dash-at-point
:ensure t
:defer t
:config (global-flycheck-mode t))
:bind (:map prog-mode-map ("C-s C-d" . dash-at-point)
:map text-mode-map ("C-s C-d" . dash-at-point))
:config
(add-to-list 'dash-at-point-mode-alist
;; Configure lookup for Ruby mode
'(enh-ruby-mode . "ruby,rubygems,rails")))
;; By default, use 2 spaces for indentation
(setq tab-width 2)
@ -73,5 +66,6 @@
(setq-local tab-stop-list (number-sequence step 200 step)))
(use-package column-enforce-mode
:ensure t
:config (global-column-enforce-mode t))
:ensure t
:defer t
:config (global-column-enforce-mode t))