[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: Add emacs-nhexl-mode.
From: |
guix-commits |
Subject: |
01/01: gnu: Add emacs-nhexl-mode. |
Date: |
Sat, 16 Mar 2019 15:41:22 -0400 (EDT) |
ambrevar pushed a commit to branch master
in repository guix.
commit da33a9e42ee6ca7f7045430fb7f945fbb1930584
Author: Pierre Neidhardt <address@hidden>
Date: Sat Mar 16 20:41:15 2019 +0100
gnu: Add emacs-nhexl-mode.
* gnu/packages/emacs-xyz.scm (emacs-nhexl-mode): New variable.
---
gnu/packages/emacs-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e23945b..8d5ee6c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -13690,3 +13690,42 @@ arguments and suffix commands. We could call this
abstraction a \"transient
command\", but because it always involves at least two commands (a prefix and
a suffix) we prefer to call it just a \"transient\".")
(license license:gpl3+))))
+
+(define-public emacs-nhexl-mode
+ (package
+ (name "emacs-nhexl-mode")
+ (version "1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://elpa.gnu.org/packages/nhexl-mode-"
+ version ".el"))
+ (sha256
+ (base32
+ "031h22p564qdvr9khs05qcba06pmsk68cr7zyc7c04hfr3y3ziaf"))))
+ (build-system emacs-build-system)
+ (home-page "http://elpa.gnu.org/packages/nhexl-mode.html")
+ (synopsis "Minor mode to edit files via hex-dump format")
+ (description
+ "This package implements NHexl mode, a minor mode for editing files
+in hex dump format. The mode command is called @command{nhexl-mode}.
+
+This minor mode implements similar functionality to @command{hexl-mode},
+but using a different implementation technique, which makes it
+usable as a \"plain\" minor mode. It works on any buffer, and does
+not mess with the undo log or with the major mode.
+
+It also comes with:
+
address@hidden
address@hidden @command{nhexl-nibble-edit-mode}: a \"nibble editor\" minor
mode, where
+the cursor pretends to advance by nibbles (4-bit) and the self-insertion keys
+(which only work for hex-digits) will only modify the nibble under point.
address@hidden @command{nhexl-overwrite-only-mode}: a minor mode to try and
avoid
+moving text. In this minor mode, not only self-inserting keys overwrite
+existing text, but commands like `yank' and @command{kill-region} as well.
address@hidden It overrides @code{C-u} to use hexadecimal, so you can do
@code{C-u a 4
+C-f} to advance by #xa4 characters.
address@hidden itemize\n")
+ (license license:gpl3+)))