How to fix the TAB key in Emacs

time4 mo agoview4 views

How to fix the TAB key in Emacs

If you want the TAB key to behave like in most text editors then put this into your Emacs config file: (global-set-key (kbd "TAB") 'self-insert-command)

To highlight your buffer press C-x h To neatly align and indent everything highlighted press C-M-
To fire just one normal TAB press C-q TAB If you want normal TAB without configuring Emacs then press M-i If you want to align the current block press C-M-u to jump to the start of your function and then alight its contents with C-M-q

C = CTRL M = Alt (Meta)

More info here: https://www.gnu.org/software/emacs/manual/html_node/emacs/Indentation.html

Make sure to motivate me for more content by, at least, liking the video and leaving a comment. It means a lot to me. Sharing this video with your friends is most welcome as is following this channel!

You can support the work financially here:

  • https://ko-fi.com/darth

Social links:

  • My webpage: https://linuxrenaissance.com
  • I am fairly active on Mastodon: https://silversword.online/@darth
  • My Matrix chat space: https://matrix.to/#/!LWfgnmBeCrpLbcWIlr:matrix.org
  • My PeerTube channel: https://tux-edu.tv/c/lxr
  • My YouTube chanel: https://youtube.com/@LinuxRenaissance
  • My Odysee channel: https://odysee.com/@LinuxRenaissance:1

This video was edited with Kdenlive.

Intro / outro music is borrowed with permission from H0ffman: https://soundcloud.com/h0ffman/sets/protracker-amiga

Thumbnail photography by Lally

Loading comments...