[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot f710394 057/184: Add keys C-M-x (evaluate region)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot f710394 057/184: Add keys C-M-x (evaluate region) and C-j (evaluate line and newline) |
Date: |
Sun, 29 Aug 2021 11:03:15 -0400 (EDT) |
branch: elpa/gnuplot
commit f710394bedc29280e0c8778477674c944fe1c112
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Add keys C-M-x (evaluate region) and C-j (evaluate line and newline)
---
gnuplot.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnuplot.el b/gnuplot.el
index 1ead637..9760322 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -651,9 +651,11 @@ you're not using that musty old thing, are you..."
(define-key gnuplot-mode-map "\C-c\C-n" 'gnuplot-negate-option)
(define-key gnuplot-mode-map "\C-c\C-p" 'gnuplot-show-gnuplot-version)
(define-key gnuplot-mode-map "\C-c\C-r" 'gnuplot-send-region-to-gnuplot)
+ (define-key gnuplot-mode-map (kbd "C-M-x") 'gnuplot-send-region-to-gnuplot)
;;(define-key gnuplot-mode-map "\C-c\C-t" 'gnuplot-gui-swap-simple-complete)
(define-key gnuplot-mode-map "\C-c\C-u" 'gnuplot-bug-report)
(define-key gnuplot-mode-map "\C-c\C-v" 'gnuplot-send-line-and-forward)
+ (define-key gnuplot-mode-map "\C-j" 'gnuplot-send-line-and-newline)
(define-key gnuplot-mode-map "\C-c\C-z" 'gnuplot-customize)
(define-key gnuplot-mode-map "\C-i" 'indent-for-tab-command)
(define-key gnuplot-mode-map "\C-m" 'newline-and-indent)
@@ -1934,6 +1936,12 @@ lines with only comments are skipped when moving
forward."
(gnuplot-forward-script-line 1)
(setq num (1- num)))))
+(defun gnuplot-send-line-and-newline ()
+ "Call `gnuplot-send-line-to-gnuplot' and insert a new line."
+ (interactive)
+ (end-of-line)
+ (gnuplot-send-line-to-gnuplot)
+ (insert "\n"))
(defun gnuplot-forward-script-line (&optional num) ; <SE>
"Move forward my NUM script lines.
- [nongnu] elpa/gnuplot fc302fd 167/184: set fail-fast strategy as false, (continued)
- [nongnu] elpa/gnuplot fc302fd 167/184: set fail-fast strategy as false, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot ac8ab77 173/184: Move changelog to a dedicated org file., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 1488629 174/184: Fix font-lock not loading., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 5fd785c 178/184: Fix test runner, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 65b58b2 175/184: Fix cl deprecation (#68), ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 6a192ef 176/184: Fix more deprecated functions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 58a1cf5 024/184: Fixed horrible bug in gnuplot-in-string/gnuplot-in-comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 0d9c0af 025/184: Better method for scanning strings/comments., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 84933f0 029/184: Allow single quoted strings to include '' as an escape for ', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot c97f028 078/184: use a defsubst instead of defmacro in debug-context, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f710394 057/184: Add keys C-M-x (evaluate region) and C-j (evaluate line and newline),
ELPA Syncer <=
- [nongnu] elpa/gnuplot 54f3882 070/184: Silence another compiler warning by using with-current-buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 35f3f8d 080/184: Avoid having text syntax-property changes mark buffer as modified, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot fdd3e1e 101/184: * README.org: update installation section for el-get users., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 35a8a19 108/184: Check for `syntax-propertize-function' when defining syntax-table, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 4cd89ab 109/184: Replace ad-hoc scanning with syntax-propertize-rules, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 09ff207 131/184: Remove un-needed `gnuplot-context-mode-p` function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot d6f8598 121/184: Cleanup inline-image mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a885233 124/184: Cleanup workaround for window-full-height-p, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 99c3855 130/184: Move gnuplot-context-sensitive-mode into gnuplot.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2ec49e9 139/184: Update GitHub url, ELPA Syncer, 2021/08/29