about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2022-07-11T14·31-0400
committerclbot <clbot@tvl.fyi>2022-07-11T14·44+0000
commit8c59414f08d67697e88a93364b71a9e5e5fe2103 (patch)
tree71ff6ca2fee285d423f87c6fab9839593ee7c2bc /users
parent0156292099fba2aae07bb16042f4288b2347c968 (diff)
fix(grfn/emacs): Fix angle brace matching in rust-mode r/4289
Change-Id: I2dd3fb3d7f82eaa6ec09c2fd845edd26eecd1548
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5938
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Diffstat (limited to 'users')
-rw-r--r--users/grfn/emacs.d/rust.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/users/grfn/emacs.d/rust.el b/users/grfn/emacs.d/rust.el
index 1c1c75aab56f..176aad08043d 100644
--- a/users/grfn/emacs.d/rust.el
+++ b/users/grfn/emacs.d/rust.el
@@ -5,8 +5,9 @@
 (defun grfn/rust-setup ()
   (interactive)
 
-  (push '(?> . ("<" . ">")) evil-surround-pairs-alist)
-  (push '(?< . ("< " . " >")) evil-surround-pairs-alist)
+  (direnv--maybe-update-environment)
+
+  (+evil-embrace-angle-bracket-modes-hook-h)
 
   (setq lsp-rust-server 'rust-analyzer)
   (setq-local whitespace-line-column 100