So anyways, I am starting to use Emacs and I love it so far. However one thing I have been trying to fix for the past couple hours is using TAB. Every time I hit tab (depending on which option I change in my .emacs file) it either only styles it for me, or I have to press TAB 3 times for it to indent 5 spaces. I hit TAB once, it doesn't do anything. I hit TAB a second time, it adds one space. I hit tab a third time, it indents 4 spaces (total of 5 spaces now). I have searched the internet for hours now and nothing is working and it's extremely frustrating to have very ugly and messy styled code.
This is my current .emacs file:
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(ansi-color-names-vector ["black" "#d55e00" "#009e73" "#f8ec59" "#0072b2" "#cc79a7" "#56b4e9" "white"]) '(custom-enabled-themes (quote (tsdh-dark))) '(electric-indent-mode 1) '(indent-tabs-mode nil) '(tab-always-indent nil) '(tab-width 4) '(transient-mark-mode t) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )
Basically I want my TAB to work like any other text editor. I press TAB, it indents 4 spaces or an actual TAB and nothing else.
Any help is GREATLY appreciated as i'm on my last wits here!
This post has been edited by player1: 31 July 2014 - 10:21 PM