If the file does not already have tabs in it, it should suffice if  
you set your customizations to not insert tabs.

The customization you want is Emacs/Editing/Fill/Indent Tabs Mode,  
set that to off.

On 2006-08-31, at 14:43 EDT, Henry Minsky wrote:

> This might be useful for keeping tabs out of your emacs edited files.
>
>
> (defun java-mode-untabify ()
>  (save-excursion
>    (goto-char (point-min))
>    (if (search-forward "\t" nil t)
>    (untabify (1- (point)) (point-max))))
>  nil)
>
> (setq auto-mode-alist (cons '("\\.as$" . java-mode) auto-mode-alist))
> (setq auto-mode-alist (cons '("\\.lzs$" . java-mode) auto-mode-alist))
>
>
> (add-hook 'java-mode-hook
>      '(lambda ()
>         (make-local-variable 'write-contents-hooks)
>         (add-hook 'write-contents-hooks 'java-mode-untabify)))
>
>
>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED]
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev


_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to