One leg of my project is to finally get deeper into Emacs than the bare mechanics I have made use of so far.
So far I am running an almost vanilla version of GNU Emacs with only haskell-mode
(not yet configured) and sublime-themes
(for a darker theme) installed.
I have run through the built in tutorial again and will attempt to focus on using the native key bindings. I’ve also created a list of key bindings to use with Anki. I’ve uploaded these here.
So what is the game plan?
haskell-mode
haskell-mode
C-h r
In the long run I think I will become too frustrated using the Emacs key bindings and navigation. The use of modifier keys when navigating is already grating on my nerves. If this does not improve dramatically over the next months I think I will look more into setting up Evil-mode
to get a taste of Vim navigation but retain the power of Emacs. But for now I will stick with ‘pure’ Emacs.
If found a fantastic emacs-haskell-tutorial on github. It pieces together a great set of basic packages to work with Haskell in Emacs. I did stumble upon one major issue when trying to follow the guide.
I couldn’t get M-?
to work, I could not get around the following error.
ghc-display-with-name: Symbol's function definition is void: turn-off-haskell-font-lock
It seems the current snapshots of haskell-mode
and ghc-mod
are not compatable. Thankfully the ghc-mod
page is very eksplicit about using the stable version of melpa and after switching I managed to get everything up and running. It also seems like Emacs 24.4 has built in functionality to force certain packages to use stable melpa which could work out nicely.
Below is the setup I have ended up piecing together for my Emacs setup. I’m running GNU Emacs version 24.3. And here is my current .emacs configuration. The script could use a cleanup and perhaps make use of the use-package
package. Further an upgrade to Emacs 24.4 would enable a more consistent use of melpa stable where desired.