Questions tagged [tabs]

Questions about the inserting/manipulating/displaying TAB characters in Emacs files. Do not use this tag for questions related to browser style "tabs".

Browser style tabs don't have a tag of their own, although the tabbar tag probably applies in many cases. Use the tab-key tag for questions related to using the physical TAB key on your keyboard (i.e., for keybindings).

92 questions
9
votes
3 answers

Is there a way to set a list of display tab stops?

I have a tab-delimited data file I maintain in emacs. Much of the data has more than seven characters per field, so at the top, I have the following line: -*- tab-width: 30 -*- This keeps things nicely aligned; unfortunately it wastes a lot of…
cpcallen
  • 213
  • 1
  • 3
2
votes
1 answer

Emacs converting spaces to tabs when using X11 primary selection in a terminal window

When I use emacs in a terminal window on linux, I am often getting spaces unexpectedly converted to tabs when I cut and paste using the X11 primary selection. What reproduces the problem for me is the following: Open a terminal window. (I tested…
user5457
2
votes
1 answer

How can I configure the tab width for TCL files

I set all tab-width parameters and indent parameters to 2, but Emacs always uses 8 for the tab space when I press the TAB key at the beginning of a line, if i opened one bracket. How can i set the tab for one bracket to 2 instead of 8?
2
votes
2 answers

Does typing TAB key provide a fixed length blank?

In Fundamental mode, I type a tab following typing each number, but it seems the separator between the numbers are not the same length. I was wondering why? 1 22 333 444
Tim
  • 5,007
  • 7
  • 32
  • 61
2
votes
1 answer

Consistent tab alignment

As an evil I choose to use tabs. I'm having trouble getting them to work like they do in other editors. I want displayed tabs aligned to 2 columns (with no exceptions). I have tab-width set to 2, but when tabs begin on an odd column they become 3…
xaxazak
  • 123
  • 3
1
vote
1 answer

Tabs like vim configuration

I'd like to know how to set emacs up to do the equivalent of what vim does when I have this configuration: cat $HOME/.vimrc set tabstop=4 set shiftwidth=4 set expandtab So basically, whenever I hit tab tab to the next tabstop with tabstops set to…
PatS
  • 155
  • 6
1
vote
0 answers

How can I make Emacs enter a TAB character when I press the TAB button, without modifying my config file?

I am looking for a command I can enter that will make the TAB key input an actual TAB character. I'm open to anything that is temporary or that will not stomp on TAB mappings that do things other than indenting the cursor (like autocompletion etc). …
A.M.
  • 111
  • 3
1
vote
1 answer

tab-width and -indent-offset difference

I've setup the indentation for tabs in Rust to be 2 whitespaces. That's what I want. And in my config it looks like this: (add-hook 'rust-mode-hook (lambda () (setq indent-tabs-mode nil) (setq tab-width 2) (setq rust-indent-offset…
Oskar K.
  • 278
  • 1
  • 7
1
vote
1 answer

Tabify: How does Emacs decides where to place tabs?

I understand how Emacs can remove tabs when using the untabify command (simply place a number of spaces in the place of the tabs) but what I can't understand is how does it place tabs in the place of spaces? When you use tabify how does Emacs knows…
Adam
  • 2,447
  • 2
  • 22
  • 40
0
votes
1 answer

Indentation without tabs

What is the difference between indent-tabs-mode and tab-always-indent?
Dilna
  • 1
  • 3
  • 11
0
votes
0 answers

emacs sometimes inserts tabs at weird places

Sometimes when I am typing in emacs, I type a space and emacs actually inserts a tab instead of the space. For example, while typing "Four score and seven years ago" emacs actually inserts this: "For score andseven yearsago". However, it only does…
0
votes
2 answers

Set tabs instead of spaces when programming

I have been using Emacs for a while and it has been one of my favorite editors of all time, even more so than Vim. However, I've had a problem in regards to setting tabs and spaces. Whenever I try to program in C or C++, whenever it auto-indents, it…
Roy
  • 1
  • 3
0
votes
0 answers

TCL is adding different tab widths in the program

I am trying to rearrange the columns of below file input.txt, Contents of this file: Name Location Purpose --------------------------------------------- Andy US Business1 bob UK …
user26663
0
votes
1 answer

Missing tabs on Emacs

I have been using Emacs for one week, so all of it is really new for me. I saw that there are two types of commands in order to navigate in emacs : - Some "tabs" on the top - Commands like shortcuts Nevertheless, my tabs are missing. Do you have a…
Alex
  • 1
0
votes
1 answer

Make `tab` key insert 5 space characters in Latex Mode

In Latex mode, the tab key runs the command indent-for-tab-command From the output of C-h k tab when in Latex mode I rarely need to indent lines in my Latex files, and so I want to disable this behavior. Also I often find it necessary to insert 5…
smilingbuddha
  • 1,201
  • 10
  • 26