summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorColdSideOfYourPillow <ColdSideOfYourPillow@noreply.codeberg.org>2025-08-21 00:44:34 +0400
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-22 22:38:59 +0100
commit5193a5b6fa758c839eb735d12e4b6c1f0d0f8832 (patch)
tree140473f02abd79e98f157e379cdd4f97b627ce01 /gnu
parent820a68d6636af30cf779dbb03c4c66d52ea3def5 (diff)
gnu: Add emacs-smarttabs.
* gnu/packages/emacs-xyz.scm (emacs-smarttabs): New variable. Change-Id: I33a2c60521396e419b0280ed19a9f98da2a5c2c5 Reviewed-by: Cayetano Santos <csantosb@inventati.org> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs-xyz.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5218216cb86..5ef9a134884 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5426,6 +5426,32 @@ always indented. It reindents after every change, making it more reliable
than @code{electric-indent-mode}.")
(license license:gpl2+)))
+(define-public emacs-smarttabs
+ (package
+ (name "emacs-smarttabs")
+ (version "1.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jcsalomon/smarttabs")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0hkgw9i4yynazx5vbkb8a1lfp0yndyi8c1w3cf7ajxpnig3hs9j6"))))
+ (build-system emacs-build-system)
+ (arguments (list #:tests? #f)) ;no tests
+ (home-page "http://www.emacswiki.org/emacs/SmartTabs")
+ (synopsis "Indent with tabs, align with spaces!")
+ (description
+ "There is a semantic way of using tab characters in source code:
+@strong{tabs for indentation, spaces for alignment}. This package provides a
+minor mode which improves Emacs' auto-indenting so that pressing @key{TAB}
+inserts the correct mix of tabs and spaces to maintain visual alignment
+regardless of a viewer's tab width. You can still use all spaces if you
+prefer; the code merely ensures that @emph{if} you enable tabs, the tab size
+does not matter.")
+ (license license:gpl2+)))
+
(define-public emacs-gc-stats
(package
(name "emacs-gc-stats")