Issue #345
can't get untabify on save to work
| Status: | Closed | Start date: | 05/10/2011 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | General | |||
| Target version: | - |
Description
To follow my groups coding standard, I need to make sure I remove tabs from my code. I tried the following from the FAQ at verilog.com: (add-hook 'verilog-mode-hook '(lambda () (add-hook 'local-write-file-hooks (lambda() (untabify (point-min) (point-max))))))
However, it doesn't seem to work. I'm using "gnu" emacs 23.3 on Linux and I'm not that fluent in elisp and add-hook.
Any suggestions?
History
Updated by Wilson Snyder about 2 years ago
- Status changed from New to Assigned
The emacs docs say the variable name changed, try this - note the nil.
(add-hook 'verilog-mode-hook '(lambda ()
(add-hook 'write-file-functions (lambda()
(untabify (point-min) (point-max))
nil))))Updated by David Rogoff about 2 years ago
Yay! That works!
Updated by Wilson Snyder about 2 years ago
- Status changed from Assigned to Closed
Also available in: Atom
![[logo]](/img/veripool_small.png)