Message 1 of 2
Problem redefining hatch command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following lines in a lisp routine which I load with Startup Suite. I want to redefine the hatch command to ensure hatch associativity is selected by default:
(defun c:hatch ()
(if (= (getvar “hpassoc”) 0)
(setvar “hpassoc” 1)
)
(command “.hatch”)
)
(command “undefine” “hatch”)
It doesn't seem to be working, and undefining 'HATCH' seems to break the 'h' keyboard shortcut defined in the PGP file, so that "h" brings up HALOGAP.
I've tried putting the "undefine" both before and after the replacement hatch function, but it doesn't seem to make any difference.
Not sure what I am doing wrong...?
thanks in advance