Move smartparens config to use-package completely

This commit is contained in:
Gergely Polonkai 2016-10-10 20:40:03 +02:00
parent b292cde518
commit 4363735efc
1 changed files with 7 additions and 10 deletions

17
init.el
View File

@ -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 dont interpret Alt-Up/Down as M-<up/down>. ;; Some terminals dont interpret Alt-Up/Down as M-<up/down>.