diff options
author | Yuchen Pei <id@ypei.org> | 2023-06-28 19:54:44 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-06-28 19:54:44 +1000 |
commit | b0e256586c24c6fb169d61e98302b11026ff10d2 (patch) | |
tree | a62223150703df6c66e3c42448efd881366448f8 /emacs/.emacs.d/lisp/my | |
parent | 5142e4227a0d10f8e5481523710b2c17b2054889 (diff) |
Some minor fixes
Diffstat (limited to 'emacs/.emacs.d/lisp/my')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-editing.el | 6 | ||||
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-mariadb.el | 2 |
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" |