summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-11-30 01:39:43 +0200
committerDrNuget <drnuget@outlook.com>2025-11-30 01:39:43 +0200
commita4ea0e03528c9147d1ac7b536455382fd54ae97d (patch)
tree5488b5ebb55a96d1bb505610bf8c801f15408b48
parent9529d31b1d08422d1b06b513a222d910ba823b92 (diff)
downloaddotfiles-a4ea0e03528c9147d1ac7b536455382fd54ae97d.tar.gz
emacs add autopairs
-rw-r--r--.emacs11
1 files changed, 11 insertions, 0 deletions
diff --git a/.emacs b/.emacs
index 521bf7a..0304b5f 100644
--- a/.emacs
+++ b/.emacs
@@ -18,6 +18,17 @@
(setq-default tab-width 4)
(setq-default indent-tabs-mode t)
+(setq electric-pair-pairs
+ '(
+ (?\" . ?\")
+ (?\{ . ?\})
+ (?\( . ?\))
+ (?\[ . ?\])
+ (?\' . ?\')
+ ))
+(electric-pair-mode 1)
+
+
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`