Move smartparens config to use-package completely
This commit is contained in:
parent
b292cde518
commit
4363735efc
17
init.el
17
init.el
@ -199,10 +199,13 @@
|
|||||||
(require 'magithub)
|
(require 'magithub)
|
||||||
(require 'origami)
|
(require 'origami)
|
||||||
(use-package smartparens-config
|
(use-package smartparens-config
|
||||||
:ensure smartparens
|
:ensure smartparens
|
||||||
:config
|
:config
|
||||||
(progn
|
(show-smartparens-global-mode t)
|
||||||
(show-smartparens-global-mode t)))
|
(add-hook 'prog-mode-hook
|
||||||
|
'turn-on-smartparens-strict-mode)
|
||||||
|
(add-hook 'markdown-mode-hook
|
||||||
|
'turn-on-smartparens-strict-mode))
|
||||||
|
|
||||||
;; Load my own functions
|
;; Load my own functions
|
||||||
(load "gnu-c-header.el")
|
(load "gnu-c-header.el")
|
||||||
@ -300,12 +303,6 @@
|
|||||||
(c-add-style "PERSONAL" my-c-style)
|
(c-add-style "PERSONAL" my-c-style)
|
||||||
(setq c-offset-alist '((member-init-intro . ++)))
|
(setq c-offset-alist '((member-init-intro . ++)))
|
||||||
|
|
||||||
;; smartparen stuff
|
|
||||||
(add-hook 'prog-mode-hook
|
|
||||||
'turn-on-smartparens-strict-mode)
|
|
||||||
(add-hook 'markdown-mode-hook
|
|
||||||
'turn-on-smartparens-strict-mode)
|
|
||||||
|
|
||||||
;; Custom key bindings
|
;; Custom key bindings
|
||||||
(global-set-key (kbd "C-x _") 'maximize-window)
|
(global-set-key (kbd "C-x _") 'maximize-window)
|
||||||
;; Some terminals don’t interpret Alt-Up/Down as M-<up/down>.
|
;; Some terminals don’t interpret Alt-Up/Down as M-<up/down>.
|
||||||
|
Loading…
Reference in New Issue
Block a user