SIGforum.com    Main Page  Hop To Forum Categories  The Lounge    Need help with emacs (my text editor)
Go
New
Find
Notify
Tools
Reply
  
Need help with emacs (my text editor) Login/Join 
Baroque Bloke
Picture of Pipe Smoker
posted
I've lomg used emacs for my MacBook text editor. It used to be
provided in every macOS (and osx). But it's not in Big Sur so I got
it with homebrew. But now these statements in my ~/.emacs file no
longer set my tab width to 4. Any ideas?

   (setq default-major-mode 'text-mode)
   (setq text-mode-hook 'turn-on-auto-fill)
   (setq default-fill-column 75)
   (setq default-tab-width 4)
   (setq tab-width 4)



Serious about crackers
 
Posts: 9785 | Location: San Diego | Registered: July 26, 2014Reply With QuoteReport This Post
Nullus Anxietas
Picture of ensigmatic
posted Hide Post
Change tab width in emacs



"America is at that awkward stage. It's too late to work within the system,,,, but too early to shoot the bastards." -- Claire Wolfe
"If we let things terrify us, life will not be worth living." -- Seneca the Younger, Roman Stoic philosopher
 
Posts: 26086 | Location: S.E. Michigan | Registered: January 06, 2008Reply With QuoteReport This Post
Baroque Bloke
Picture of Pipe Smoker
posted Hide Post
^^^^^^^^
I tried several permutations but none worked. I have emacs version 27.2



Serious about crackers
 
Posts: 9785 | Location: San Diego | Registered: July 26, 2014Reply With QuoteReport This Post
אַרְיֵה
Picture of V-Tail
posted Hide Post
Can't help you with emacs, I'm a vi user.

:set tabstop=4



הרחפת שלי מלאה בצלופחים
 
Posts: 31860 | Location: Central Florida, Orlando area | Registered: January 03, 2010Reply With QuoteReport This Post
member
Picture of henryaz
posted Hide Post
 
I prefer tabs set at 4 also, but like V-Tail, I use vi.
 
One thing that bothered me for a while was the tabstop in the pager app (more or less). You can set tabstops for those as well, by placing these lines in your user profile (.bashrc, .zshrc, etc.)
 
PAGER=less
LESS="-x4"
export LESS

Sorry, no help for emacs.



When in doubt, mumble
 
Posts: 10887 | Location: South Congress AZ | Registered: May 27, 2006Reply With QuoteReport This Post
Baroque Bloke
Picture of Pipe Smoker
posted Hide Post
quote:
Originally posted by ensigmatic:
Change tab width in emacs

Woo hoo! In the link that you provided there is:
(setq-default tab-width 4)

Slightly different than the syntax that worked for the Apple-supplied emacs:
(setq default-tab-width 4)

When I put that new form, along with some other stuff in the link, into my ~/.emacs file it didn’t work. But just a while ago I eliminated the “other stuff” and it worked!.

I thank you, ensigmatic!



Serious about crackers
 
Posts: 9785 | Location: San Diego | Registered: July 26, 2014Reply With QuoteReport This Post
Nullus Anxietas
Picture of ensigmatic
posted Hide Post
quote:
Originally posted by Pipe Smoker:
I thank you, ensigmatic!
You're welcome. Glad you were finally able to get it working.



"America is at that awkward stage. It's too late to work within the system,,,, but too early to shoot the bastards." -- Claire Wolfe
"If we let things terrify us, life will not be worth living." -- Seneca the Younger, Roman Stoic philosopher
 
Posts: 26086 | Location: S.E. Michigan | Registered: January 06, 2008Reply With QuoteReport This Post
  Powered by Social Strata  
 

SIGforum.com    Main Page  Hop To Forum Categories  The Lounge    Need help with emacs (my text editor)

© SIGforum 2024