* Have shell-mode obey standard indentation style variables
@ 2015-07-13 16:25 Andrew Pennebaker
2015-07-13 17:02 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Pennebaker @ 2015-07-13 16:25 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
Emacs offers convenient variables for customizing indentation styles:
indent-tabs-mode and sws-tab-width. For many programming modes, a user can
set these variables globally, and they will automatically be applied to
different file formats. Of course, these can be customized per-mode with
hooks.
However, shell-mode does not appear to respect these variables, only
responding to its own internal variable names sh-basic-offset and
sh-indentation. In the future, could shell-mode please automatically
default these to follow sws-tab-width, so that fewer individual modes
require specific configuration?
Here's my .emacs for reference:
https://github.com/mcandre/dotfiles/blob/master/.emacs#L59-L60
--
Cheers,
Andrew
[-- Attachment #2: Type: text/html, Size: 1008 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Have shell-mode obey standard indentation style variables
2015-07-13 16:25 Have shell-mode obey standard indentation style variables Andrew Pennebaker
@ 2015-07-13 17:02 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2015-07-13 17:02 UTC (permalink / raw)
To: Andrew Pennebaker; +Cc: emacs-devel
Andrew Pennebaker <andrew.pennebaker@gmail.com> writes:
> Emacs offers convenient variables for customizing indentation styles:
> indent-tabs-mode and sws-tab-width.
sws-tab-width is void as a variable.
Documentation:
Not documented as a variable.
> However, shell-mode does not appear to respect these variables, only
> responding to its own internal variable names sh-basic-offset and
> sh-indentation. In the future, could shell-mode please automatically
> default these to follow sws-tab-width, so that fewer individual modes
> require specific configuration?
sh-basic-offset and tab-width are independent concepts.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-13 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 16:25 Have shell-mode obey standard indentation style variables Andrew Pennebaker
2015-07-13 17:02 ` Andreas Schwab
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.