summaryrefslogtreecommitdiff
path: root/emacs/inits/20-programming.el
diff options
context:
space:
mode:
authortslil clingman <>2020-01-31 13:50:29 -0800
committertslil clingman <>2020-01-31 13:50:29 -0800
commitb9a16108f8d27f2c9e401be89e13d3de0c1b9478 (patch)
treecc82adcc18fb306022d59a42948d52fb7ad53546 /emacs/inits/20-programming.el
parent5553be28d41cefc72300be7160b5202fd297537b (diff)
Tramp/Projectile/Ivy(Rich) slowness fix, misc improvements
Diffstat (limited to 'emacs/inits/20-programming.el')
-rw-r--r--emacs/inits/20-programming.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el
index a072e22..18ba4b0 100644
--- a/emacs/inits/20-programming.el
+++ b/emacs/inits/20-programming.el
@@ -1,4 +1,4 @@
-;; Time-stamp: <2020-01-19 21:42:02 (tslil@bison)>
+;; Time-stamp: <2020-01-29 10:47:16 (tslil@bison)>
;; -----------------------------------------------------------------------------
;; General setup
@@ -31,8 +31,8 @@
(use-package shift-number
:ensure t
- :bind (("C-c S-i" . shift-number-up)
- ("C-c S-d" . shift-number-down)))
+ :bind (("C-c s p" . shift-number-up)
+ ("C-c s n" . shift-number-down)))
(use-package comment-dwim-2
:ensure t
@@ -158,13 +158,20 @@
:ensure t
:defer t
:bind (:map rust-mode-map
+ ("M-," . lh-backward-delim)
+ ("M-." . lh-forward-delim)
+ ("M-/" . lh-matching-delim)
+ ("M-p" . beginning-of-defun)
+ ("M-n" . end-of-defun)
("C-c C-c" . rust-compile)
("C-c C-r" . rust-run))
:hook (rust-mode . (lambda ()
;; For some reason this is not automatic
(setq-local electric-pair-pairs
(cons '(?' . ?') electric-pair-pairs))
- (flycheck-mode)
+ ;; Pair {} in rust format strings ... ?
+ (setq-local electric-pair-text-pairs
+ (cons '(?{ . ?}) electric-pair-pairs))
(flycheck-rust-setup)))
:config
(setq rust-indent-offset 4