Re: [Python-checkins] SourceForge problems

Oct. 28, 2000
10:43 a.m.
fred wrote:
now that this has been done, emacs users might want to add something like the following to their local configuration (based on code by jwz, so it should work...) ::: (defun python-mode-untabify () (save-excursion (goto-char (point-min)) (while (re-search-forward "[ \t]+$" nil t) (delete-region (match-beginning 0) (match-end 0))) (goto-char (point-min)) (if (search-forward "\t" nil t) (untabify (1- (point)) (point-max)))) nil) (add-hook 'python-mode-hook '(lambda () (make-local-variable 'write-contents-hooks) (add-hook 'write-contents-hooks 'python-mode-untabify))) </F>
8907
Age (days ago)
8907
Last active (days ago)
0 comments
1 participants
participants (1)
-
Fredrik Lundh