How do I get emacs to indent for tab AND respect tab to demarcate paragraphs
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I get emacs to indent for tab AND respect tab to demarcate paragraphs
In emacs 24.3 and earlier, I could choose to indent for tabs at the beginning of a line and use paragraph-indent-minor mode to make fill respect a tab as the beginning of a paragraph (instead of whitespace to be eliminated).
Beginning in 24.4 I couldn't. When package 24.3 no longer ran with updated libraries I built my own version of 24.3. Now I can no longer build it, so I'm trying to figure out how to make current emacs do what I want.
I can make emacs always-indent on startup with tab-always-indent in .emacs, but it doesn't start in parindent mode, I have to turn it on, which is a bore, *and* turns off tabs making indents.
How can I make emacs start in parindent mode and indent for tab?
Can't you turn on paragraph-indent--mode in a text-mode-hook?
I can't find 'text-mode-hook' in 'info emacs' or when I search help when in emacs.
In fundamental mode tab indents ('cause I have 'tab-always-indent' on) but when I switch to (or start up in) a paragraph-indent mode it doesn't. Before version 24.4 it did.
I hoped to find it in one of the 'el's (e.g., text-mode.el or indent.el) but substituting 24.3's 'el's made no difference.
If I have read the Emacs manual correctly, you should set Paragraph-Indent Text mode instead of the usual Text mode.
Then set the buffer option [Save for Future Sessions] to have the option on startup.
See sections 51.1.3 Changing a Variable and 51.1.4 Saving Customizations of the Emacs manual.
you should set Paragraph-Indent Text mode instead of the usual Text mode.
I do, and wrote that I do.
Quote:
Originally Posted by bigrigdriver
Then set the buffer option [Save for Future Sessions] to have the option on startup.
I edit $HOME/.emacs. Beginning with 24.4 emacs no longer respects tab-always-indent in text modes. It respects it in fundamental mode (and C and HTML), but fundamental mode does not treat indentation as the beginning of a paragraph.
Last edited by RandomTroll; 10-18-2016 at 11:53 AM.
Reason: fix mistake
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.