aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/lisp')
-rw-r--r--emacs/.emacs.d/lisp/my/my-editing.el6
-rw-r--r--emacs/.emacs.d/lisp/my/my-mariadb.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-editing.el b/emacs/.emacs.d/lisp/my/my-editing.el
index 174504d..975b9ae 100644
--- a/emacs/.emacs.d/lisp/my/my-editing.el
+++ b/emacs/.emacs.d/lisp/my/my-editing.el
@@ -397,6 +397,12 @@ With an prefix-arg, copy the file name relative to project root."
(setq show-trailing-whitespace t)
)
+(defun my-text-modes-setup ()
+ ;; it can be hard to preserve balance in text mode
+ (setq-local electric-pair-preserve-balance nil)
+ (turn-on-auto-fill)
+ )
+
(defun my-find-file-line-number (orig filename &rest args)
"Turn files like file.cpp:14 into file.cpp and going to the 14-th line."
(save-match-data
diff --git a/emacs/.emacs.d/lisp/my/my-mariadb.el b/emacs/.emacs.d/lisp/my/my-mariadb.el
index a74cceb..773ddbd 100644
--- a/emacs/.emacs.d/lisp/my/my-mariadb.el
+++ b/emacs/.emacs.d/lisp/my/my-mariadb.el
@@ -57,7 +57,7 @@
(my-gdb-quit))
(sleep-for 1)
(my-gdb
- (format "rr replay %s -d /home/ycp/source/mariadb-tools/gdb-mi.sh"
+ (format "rr replay %s -d ~/bin/gdb-mi.sh"
(expand-file-name
(replace-regexp-in-string
"/src"