do not edit — generated by btf.
git.druid.rocksindexdruid520radiumradium-lang-sh.el

radium-lang-sh.el


;;; radium-lang-sh.el, posix sh, tab-indented like everything else -*- lexical-binding: t; -*-
;;
;; sh-script already detects "sh" (posix) vs bash/ksh from the shebang
;; line, and my scripts all say `#!/usr/bin/env sh`, so no
;; override is needed there - just the indent style: tabs, 8 wide,
;; like the c/perl/asm files. tabs are tabs, everywhere, no matter what.
 
(require 'sh-script)
 
;; TAB is bound to indent-for-tab-command, which recalculates "the
;; correct" indentation and does nothing once it thinks the line
;; already has it - a bare top-level command's correct indentation is
;; column 0, so repeated TAB presses on one were all silent no-ops.
;; same manual-control-over-electric-guessing shape as electric-indent-
;; mode being off globally and asm-mode's # key: TAB just inserts a
;; literal tab, repeatable, no recalculation. (unlike asm-mode, sh-mode
;; never re-binds this per-buffer-activation, so a plain define-key on
;; the shared map at load time is enough here - verified directly.)
(define-key sh-mode-map (kbd "TAB") #'self-insert-command)
 
(add-hook 'sh-mode-hook
          (lambda ()
            (setq indent-tabs-mode t
                  sh-basic-offset 8)))
 
(provide 'radium-lang-sh)
powered by btf.