automatically disable a global minor mode for a specific major mode

Global minor modes created with the define-globalized-minor-mode1 macro are a bit tricky. The reason your code doesn’t appear to do anything is that globalized modes utilise after-change-major-mode-hook to activate the buffer-local minor mode that they control; and that hook runs immediately after the major mode’s own hooks4. Individual modes may implement custom ways of specifying … Read more

How do I set up Aquamacs for Clojure development?

These are the steps I took to set them up without using ELPA. Hope this helps. Get SLIME using MacPorts sudo port -v install slime Get paredit curl -O http://mumble.net/~campbell/emacs/paredit.el Get clojure & clojure-contrib Either using MacPorts sudo port -v install clojure clojure-contrib Or downloading directly curl -O http://build.clojure.org/snapshots/org/clojure/clojure/1.1.0-master-SNAPSHOT/clojure-1.1.0-master-20091202.150145-1.jar curl -O http://build.clojure.org/snapshots/org/clojure/clojure-contrib/1.1.0-master-SNAPSHOT/clojure-contrib-1.1.0-master-20091212.205045-1.jar Get clojure-mode and … Read more

In clojure, how can I undef a var from a namespace?

If I understand you correctly, ns-unmap should do what you want: user=> foo java.lang.Exception: Unable to resolve symbol: foo in this context (NO_SOURCE_FILE:1) user=> (def foo 1) #’user/foo user=> foo 1 user=> (ns-unmap (find-ns ‘user) ‘foo) nil user=> foo java.lang.Exception: Unable to resolve symbol: foo in this context (NO_SOURCE_FILE:1)

Using Emacs as an IDE

You’ll have to be specific as to what you mean by “the rest”. Except for the object inspector (that I”m aware of), emacs does all the above quite easily: editor (obvious) compiler – just run M-x compile and enter your compile command. From there on, you can just M-x compile and use the default. Emacs … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)