Reserved s-= for my-calc-line (to avoid excessive typing of M-x my-calc-line). er/expand-region is now s-w to be near C-w/M-w.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 03 Feb 2021 12:32:49 +0200
changeset 1724 35c96420cf54
parent 1723 6533fa2834cf
child 1725 ce379e248565
Reserved s-= for my-calc-line (to avoid excessive typing of M-x my-calc-line). er/expand-region is now s-w to be near C-w/M-w.
.emacs-my
--- a/.emacs-my	Sun Jan 31 20:35:05 2021 +0200
+++ b/.emacs-my	Wed Feb 03 12:32:49 2021 +0200
@@ -944,7 +944,7 @@
   (setq x-select-enable-clipboard t))
 
 (when (fboundp 'er/expand-region)
-  (global-set-key (kbd "s-=") 'er/expand-region))
+  (global-set-key (kbd "s-w") 'er/expand-region))
 
 (defun my-mark-line ()
   "Mark current line."
@@ -1664,6 +1664,8 @@
           (insert ?\ ))
         (insert result)))))
 
+(global-set-key (kbd "s-=") #'my-calc-line)
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "rst, reStructuredText")