[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt c5086ea624 294/323: bb--output-mode now a maj
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt c5086ea624 294/323: bb--output-mode now a major mode |
Date: |
Thu, 9 Mar 2023 10:58:49 -0500 (EST) |
branch: externals/beardbolt
commit c5086ea624fcaa1d3a2c3046143896a18e6a812a
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
bb--output-mode now a major mode
* beardbolt.el (bb-compile-delay): Adjust to 0.6
(bb--handle-finish-compile): Use bb--output-mode
(bb--output-mode): Now a major mode.
---
beardbolt.el | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/beardbolt.el b/beardbolt.el
index 46f9cae61c..6f6412f050 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -127,7 +127,7 @@ Passed directly to compiler or disassembler."
(defvar bb-hide-compile t)
-(defvar bb-compile-delay 1.0
+(defvar bb-compile-delay 0.6
"Time in seconds to delay before recompiling if there is a change.
If nil, auto-recompilation is off.")
@@ -517,10 +517,9 @@ Argument STR compilation finish status."
(output-buffer (bb--output-buffer src-buffer))
(split-width-threshold (min split-width-threshold 100)))
(with-current-buffer output-buffer
- (asm-mode)
- (display-line-numbers-mode)
- (setq bb--source-buffer src-buffer)
(bb--output-mode)
+
+ (setq bb--source-buffer src-buffer)
(buffer-disable-undo)
;; Store src buffer value for later linking
(cond
@@ -742,16 +741,12 @@ With prefix argument, choose from starter files in
`bb-starter-files'."
(remove-hook 'kill-buffer-hook #'bb--on-kill-source-buffer t)
(remove-hook 'post-command-hook #'bb--source-buffer-pch t))))
-(define-minor-mode bb--output-mode
+(define-derived-mode bb--output-mode asm-mode "⚡output⚡"
"Toggle `bearbolt--output-mode', internal mode for asm buffers."
- :global nil :lighter " ⚡"
- (cond
- (bb--output-mode
- (add-hook 'kill-buffer-hook #'bb--on-kill-output-buffer nil t)
- (add-hook 'post-command-hook #'bb--output-buffer-pch nil t))
- (t
- (remove-hook 'kill-buffer-hook #'bb--on-kill-output-buffer t)
- (remove-hook 'post-command-hook #'bb--output-buffer-pch t))))
+ (add-hook 'kill-buffer-hook #'bb--on-kill-output-buffer nil t)
+ (add-hook 'post-command-hook #'bb--output-buffer-pch nil t)
+ (setq truncate-lines t)
+ (display-line-numbers-mode))
;;;###autoload
(defun beardbolt ()
- [elpa] externals/beardbolt b56d3b6cdb 245/323: Merge branch 'improve-starters' into 'master', (continued)
- [elpa] externals/beardbolt b56d3b6cdb 245/323: Merge branch 'improve-starters' into 'master', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 16f887917b 252/323: Improve rainbow color selection algorithm, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 9bc7e8aeb8 236/323: Remove `rmsbolt--post-command-hook` when mode is deactivated, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 660739681c 254/323: Rename every rms* file to beard*, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f846655a35 250/323: Rework rmsbolt-rainbowize to reuse more code, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 78eed53af1 260/323: Don't hang a "[Compiling]" forever in the mode-line, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b71d1bd763 265/323: * beardbolt.el (bb-compile): Fix handling of bb-asm-format., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 4cbe58f834 279/323: Add -g1 instead of -g to speed it up massively, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2542f24813 285/323: Tweak, rework, speed up main algorithm again, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 85bc714336 295/323: Simplify source file tracking, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c5086ea624 294/323: bb--output-mode now a major mode,
ELPA Syncer <=
- [elpa] externals/beardbolt 298a5fe6a2 296/323: Fix starter/beardbolt.cpp, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 067096f3b9 299/323: Friendlier beardbolt--output-mode, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 0ae21a302a 302/323: Simplify window management in preparation of beardbolt-execute-program, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 842b2159da 305/323: More simplification, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 60d189b0a6 310/323: Advertise beardbolt-execute and a few other things, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c374b17f5c 314/323: Don't require file to be saved, but do take advantage if it is, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 4a050afaaa 315/323: Attempt to fix more window management bugs, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 0d61c2edac 311/323: Add support for rustc, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt be3cf0a712 318/323: Fix problems with beardbolt-compile when file is saved, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 349ace7310 164/323: Merge branch 'master' of gitlab.com:jgkamat/rmsbolt, ELPA Syncer, 2023/03/09