mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
disabled smartparens strict mode, C-k to hybrid
This commit is contained in:
13
.emacs
13
.emacs
@@ -1,4 +1,4 @@
|
|||||||
;; Toms Emacs Config - portable - version (20181113.01) -*-emacs-lisp-*-
|
;; Toms Emacs Config - portable - version (20181115.01) -*-emacs-lisp-*-
|
||||||
;; * Introduction
|
;; * Introduction
|
||||||
|
|
||||||
;; This is my emacs config, it is more than twenty years old. It
|
;; This is my emacs config, it is more than twenty years old. It
|
||||||
@@ -701,6 +701,11 @@
|
|||||||
;; 20181113.01
|
;; 20181113.01
|
||||||
;; - disabled paredit, enabled smartparens
|
;; - disabled paredit, enabled smartparens
|
||||||
|
|
||||||
|
;; 20181115.01
|
||||||
|
;; - disabled smartparens strict mode, much annoying
|
||||||
|
;; - map C-k to 'sp-kill-hybrid-sexp
|
||||||
|
|
||||||
|
|
||||||
;; ** TODO
|
;; ** TODO
|
||||||
|
|
||||||
;; - check helpful https://github.com/wilfred/helpful
|
;; - check helpful https://github.com/wilfred/helpful
|
||||||
@@ -728,7 +733,7 @@
|
|||||||
;; My emacs config has a version (consisting of a timestamp with a
|
;; My emacs config has a version (consisting of a timestamp with a
|
||||||
;; serial), which I display in the mode line. So I can clearly see, if
|
;; serial), which I display in the mode line. So I can clearly see, if
|
||||||
;; I'm using an outdated config somewhere.
|
;; I'm using an outdated config somewhere.
|
||||||
(defvar tvd-emacs-version "20181113.01")
|
(defvar tvd-emacs-version "20181115.01")
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -2285,7 +2290,7 @@ respectively."
|
|||||||
(back-quote . "`")))
|
(back-quote . "`")))
|
||||||
|
|
||||||
;;(add-hook 'smartparens-enabled-hook #'tvd-disable-par-and-pair)
|
;;(add-hook 'smartparens-enabled-hook #'tvd-disable-par-and-pair)
|
||||||
(add-hook 'smartparens-enabled-hook #'turn-on-smartparens-strict-mode)
|
;;(add-hook 'smartparens-enabled-hook #'turn-on-smartparens-strict-mode)
|
||||||
|
|
||||||
;; auto wrapping w/o region
|
;; auto wrapping w/o region
|
||||||
(define-key smartparens-mode-map (kbd "C-c (") 'wrap-with-parens)
|
(define-key smartparens-mode-map (kbd "C-c (") 'wrap-with-parens)
|
||||||
@@ -2297,7 +2302,7 @@ respectively."
|
|||||||
|
|
||||||
;; modification
|
;; modification
|
||||||
(define-key smartparens-mode-map (kbd "C-x (") 'hydra-smartparens/body)
|
(define-key smartparens-mode-map (kbd "C-x (") 'hydra-smartparens/body)
|
||||||
(define-key smartparens-mode-map (kbd "C-k") 'sp-kill-sexp)
|
(define-key smartparens-mode-map (kbd "C-k") 'sp-kill-hybrid-sexp)
|
||||||
(define-key smartparens-mode-map (kbd "C-<left>") 'sp-forward-slurp-sexp)
|
(define-key smartparens-mode-map (kbd "C-<left>") 'sp-forward-slurp-sexp)
|
||||||
(define-key smartparens-mode-map (kbd "C-<right>") 'sp-forward-barf-sexp)
|
(define-key smartparens-mode-map (kbd "C-<right>") 'sp-forward-barf-sexp)
|
||||||
|
|
||||||
|
|||||||
989
emacs.html
989
emacs.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user