0

I'm supposed to run these lines in emacs. But, I don't know how. I don't know if I should compile, write it in a shell command, or what. This is supposed to make an interface between a program called tidal, and emacs.

(add-to-list 'load-path "{directoryfile}")
(require 'haskell-mode)
(require 'tidal)
Trux
  • 157
  • 6
  • 1
    The type of stuff you are citing is normally placed inside the `.emacs` file -- the first time this is done, Emacs needs to be restarted. You will need to install the `haskel-mode` and `tidal` libraries if you have not already done so. – lawlist Jun 13 '14 at 01:22
  • 1
    You could also just paste these into the `*scratch*` buffer and evaluate them by typing `C-x C-e` or `M-x eval-buffer`. (The former key-sequence evaluates just one balanced "form" before the cursor, the latter evaluates everything in the current buffer.) –  Jun 13 '14 at 01:26
  • 1
    To put that code into your init file (`~/.emacs`), start Emacs, then do `C-x C-f ~/.emacs` (that's `Control-x` `Control-f` `x`) to create an empty init file. Then type the code into the file, and save it using `C-x C-s`. Then restart Emacs and it will automatically pick up your new init file and evaluate the code you entered. – Drew Jun 13 '14 at 01:59
  • This Q&A often proves helpful: http://stackoverflow.com/questions/10545437/how-to-disable-the-beep-in-emacs-on-windows – phils Jun 13 '14 at 02:05
  • 1
    Note that your `{directoryfile}` needs be a path to a directory which contains Emacs libraries. Presumably the instructions you're following are assuming that `haskell-mode.el` and `tidal.el` are in that directory. – phils Jun 13 '14 at 02:10
  • Welcome, new user. Please have a look at the Emacs tutorial, which will get you started. From within Emacs, type `Control-h t`. – Dan Jun 13 '14 at 11:10

0 Answers0