all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Python Mode, managing and converting TABS
@ 2014-05-28 19:13 Tim Johnson
  2014-05-28 23:37 ` Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Tim Johnson @ 2014-05-28 19:13 UTC (permalink / raw)
  To: Emacs

I'm currently using 
GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10 on
Ubuntu 12.04, but expect to have to also use --no-window-system
("console mode") on occassion.

I have used emacs extensively in the distant past (up 'til 2008), so
am re-acquainting myself with the system.

I have much legacy python code that has "hard tabs" and to meet
the python style guides, will have to be converted to "soft tabs".
I.E. TAB => "    "

I also need to configure emacs so that TAB (or Ctrl-i) inserts four
spaces instead of the TAB character.

I currently have this in my .emacs [code]
(add-hook 'python-mode-hook
            '(lambda ()
               (turn-on-font-lock)
               (setq default-tab-width 4)
               (setq tab-width 4)
               (imenu-add-menubar-index)
               (setq imenu-sort-function 'imenu--sort-by-name)))

[/code]

I'd welcome any and all advice, pointers to previous discussion
would are solicited.

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com



^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.2339.1401307161.1147.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2014-06-04 23:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28 19:13 Python Mode, managing and converting TABS Tim Johnson
2014-05-28 23:37 ` Stefan Monnier
2014-05-29 15:57   ` Tim Johnson
2014-05-29 16:49     ` Stefan Monnier
2014-05-29 17:51       ` Tim Johnson
     [not found] <mailman.2339.1401307161.1147.help-gnu-emacs@gnu.org>
2014-05-28 21:17 ` Dan.Espen
2014-05-28 21:44   ` Tim Johnson
2014-06-02 19:33 ` Damien Wyart
2014-06-03 15:20   ` Tim Johnson
     [not found]   ` <mailman.2841.1401808858.1147.help-gnu-emacs@gnu.org>
2014-06-03 17:53     ` Damien Wyart
2014-06-04 23:49       ` Tim Johnson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.