[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Issue #345

can't get untabify on save to work

Added by David Rogoff over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:05/10/2011
Priority:HighDue 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

#1 Updated by Wilson Snyder over 3 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))))

#2 Updated by David Rogoff over 3 years ago

Yay! That works!

#3 Updated by Wilson Snyder over 3 years ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF