diff options
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/init/ycp-editing.el | 2 | ||||
-rw-r--r-- | emacs/.emacs.d/init/ycp-project.el | 2 | ||||
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-editing.el | 7 |
3 files changed, 6 insertions, 5 deletions
diff --git a/emacs/.emacs.d/init/ycp-editing.el b/emacs/.emacs.d/init/ycp-editing.el index 7af3587..4bdeb32 100644 --- a/emacs/.emacs.d/init/ycp-editing.el +++ b/emacs/.emacs.d/init/ycp-editing.el @@ -132,7 +132,7 @@ (add-hook 'text-mode-hook #'turn-on-auto-fill) -(my-add-hooks #'my-non-special-modes-setup '(text-mode prog-mode)) +(my-add-hooks #'my-non-special-modes-setup '(text-mode-hook prog-mode-hook)) (add-to-list 'auto-mode-alist diff --git a/emacs/.emacs.d/init/ycp-project.el b/emacs/.emacs.d/init/ycp-project.el index 15c7fcc..d4c7dd9 100644 --- a/emacs/.emacs.d/init/ycp-project.el +++ b/emacs/.emacs.d/init/ycp-project.el @@ -29,7 +29,7 @@ (my-package my-project (:delay 30) - (my-setq-from-local my-projects-root-dirs) + (my-setq-from-local my-projects-root-dirs my-licenses) (my-keybind global-map "\C-xpl" #'my-project-copy-license-file-to-project "\C-xpS" #'my-project-shell-at diff --git a/emacs/.emacs.d/lisp/my/my-editing.el b/emacs/.emacs.d/lisp/my/my-editing.el index 940a338..b420d89 100644 --- a/emacs/.emacs.d/lisp/my/my-editing.el +++ b/emacs/.emacs.d/lisp/my/my-editing.el @@ -251,9 +251,10 @@ Call the commands `my-escape-url-line' and (defun my--character-prompt (chars) "Helper of `my-insert-pair-completion' to read CHARS." (let ((def (car my--character-hist))) - (completing-read - (format "Select character [%s]: " def) - chars nil t nil 'my--character-hist def))) + (let ((electric-pair-mode nil)) + (completing-read + (format "Select character [%s]: " def) + chars nil t nil 'my--character-hist def)))) ;;;###autoload (defun my-insert-pair (pair &optional count) |