diff --git a/core/core-editor.el b/core/core-editor.el index 3142fe157..1f2eb1a9a 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -6,9 +6,10 @@ :commands (rotate-word-at-point rotate-region)) (use-package smartparens - :init (require 'smartparens-config) :config (progn + (require 'smartparens-config) + (smartparens-global-mode 1) (setq blink-matching-paren t) diff --git a/core/core-ui.el b/core/core-ui.el index 8c37afb96..0ec1ba7ad 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -2,7 +2,7 @@ ;;;; Load Theme ;;;;;;;;;;;;;;;;;;;;;;;; (when window-system - (set-frame-parameter nil 'alpha '(98 90)) + (set-frame-parameter nil 'alpha '(96 86)) ;; Load font (cycle-font 0)) diff --git a/core/defuns.el b/core/defuns.el index e571f1c84..18676486d 100644 --- a/core/defuns.el +++ b/core/defuns.el @@ -115,6 +115,9 @@ key-chord-define." (defun enable-tab-width-2 () (setq tab-width 2 evil-shift-width 2)) +(defun enable-tab-width-4 () + (setq tab-width 4 evil-shift-width 4)) + (defun disable-final-newline () (set (make-local-variable 'require-final-newline) nil)) diff --git a/init/init-lisp.el b/init/init-lisp.el index e5d822781..568f92b2c 100644 --- a/init/init-lisp.el +++ b/init/init-lisp.el @@ -26,7 +26,7 @@ (λ (let ((func (function-called-at-point))) (if func (find-function-other-window func))))) -(bind 'motion emacs-lisp-mode-map "g r" 'my:elisp-eval) +(bind 'motion emacs-lisp-mode-map "gr" 'my:elisp-eval) ;; TODO Add clojure support ;; TODO Add scheme support diff --git a/init/init-project.el b/init/init-project.el index e1ca0808b..877eabe2d 100644 --- a/init/init-project.el +++ b/init/init-project.el @@ -23,20 +23,21 @@ (use-package dired :disabled t - :init - (progn (setq dired-recursive-deletes 'always - dired-recursive-copies 'always - dired-auto-revert-buffer t + :config + (progn + (setq dired-recursive-deletes 'always + dired-recursive-copies 'always + dired-auto-revert-buffer t - ;; if there is a dired buffer displayed in the next - ;; window, use its current subdir, instead of the - ;; current subdir of this dired buffer - dired-dwim-target t) + ;; if there is a dired buffer displayed in the next + ;; window, use its current subdir, instead of the + ;; current subdir of this dired buffer + dired-dwim-target t) - (push '(dired-mode :position bottom :height 0.5 :stick t) popwin:special-display-config) + (push '(dired-mode :position bottom :height 0.5 :stick t) popwin:special-display-config) - (add-hook! 'dired-mode-hook - (use-package 'dired+ :config (toggle-diredp-find-file-reuse-dir 1))))) + (add-hook! 'dired-mode-hook + (use-package 'dired+ :config (toggle-diredp-find-file-reuse-dir 1))))) (provide 'init-project)