From b9a16108f8d27f2c9e401be89e13d3de0c1b9478 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Fri, 31 Jan 2020 13:50:29 -0800 Subject: Tramp/Projectile/Ivy(Rich) slowness fix, misc improvements --- emacs/inits/20-programming.el | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'emacs/inits/20-programming.el') 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 -- cgit v1.2.3