title: Trouble running Common Music in Emacs
body: <p>I am a 4th year bachelor student composition who recently came across the GitHub <a href="https://github.com/ormf/cm" rel="nofollow noreferrer">repositories</a> of Prof. Orm Finnendahl. I was wondering if anyone could help me setup Common Music 2.12.0 with Emacs on Windows 7, 64 bit. I’m embarrassed to say I have been trying on and off now for a couple of months and just can’t figure it out! I’ve read CM’s documentation, but it simply doesn’t seem to work.</p>
  
  <p>I’ve tried following the instructions on the <a href="http://commonmusic.sourceforge.net/cm2/doc/cm.html" rel="nofollow noreferrer">older website</a> dedicated to CM2 (prior to CM3). Specifically these two links: "<a href="http://commonmusic.sourceforge.net/cm2/doc/install.html" rel="nofollow noreferrer">Installing Common Music</a>", and "<a href="http://commonmusic.sourceforge.net/cm2/doc/emacs.html" rel="nofollow noreferrer">Running Common Music in Emacs</a>". I did get the Emacs part right, I think, but Bash gives an error trying to load anything.</p>
  
  <p><em>(I put the cm-master without the -master, and other repositories in C:/Users/XI-USER/lispmusic)</em></p>
  
  <ol>
  <li>My Emacs is, I believe properly setup, as follows in the init file (the last lines are from the "Running Common Music in Emacs" website):</li>
  </ol>
  
  <pre class="lang-el prettyprint-override"><code>(require 'package)
  (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
  (package-initialize)
  
  (load (expand-file-name "~/quicklisp/slime-helper.el"))
  (setq inferior-lisp-program "sbcl")
  
  (global-linum-mode t)
  
  (add-hook 'prog-mode-hook 'highlight-numbers-mode)
  (add-hook 'emacs-lisp-mode-hook 'highlight-quoted-mode)
  (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
  (add-hook 'emacs-lisp-mode-hook 'highlight-defined-mode)
  
  (use-package kaolin-themes
    :config
    (load-theme 'kaolin-galaxy t))
  
  ;; If t, enable italic style in comments.
  (setq kaolin-themes-italic-comments t)
  
  ;; When t, will display colored hl-line style instead monochrome.    
  (setq kaolin-themes-hl-line-colored t)      
  
  ;; Enable distinct background for fringe and line numbers.
  (setq kaolin-themes-distinct-fringe t)  
  
  ;; Enable distinct colors for company popup scrollbar.
  (setq kaolin-themes-distinct-company-scrollbar t)
  
  ;; Show git-gutter indicators as solid lines
  (setq kaolin-themes-git-gutter-solid t)
  
  (custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
   '(package-selected-packages (quote (use-package)))
   '(tool-bar-mode nil))
  (custom-set-faces
   ;; custom-set-faces was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
   '(default ((t (:family "Victor Mono" :foundry "outline" :slant normal :weight bold :height 120 :width normal)))))
  
  (add-to-list 'load-path "C:/Users/XI-USER/.slime/")
  (add-to-list 'load-path "C:/Users/XI-USER/lispmusic/cm/")
  (load "etc/emacs/cm.el")
  (enable-cm-commands)
  </code></pre>
  
  <ol start="2">
  <li><p>I have both Git Bash and cygwin64 installed (I believe Bash is 64 bit too, should it matter)</p></li>
  <li><p>When I load cm/bin/cm.sh via Emacs shell, I get this error message in Bash:</p></li>
  </ol>
  
  <pre class="lang-none prettyprint-override"><code>debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
  #&lt;THREAD "main thread" RUNNING {10027900C3}&gt;:
    Couldn't load "/c/Users/XI-USER/lispmusic/cm/bin/../src/cm.lisp": file does
    not exist.
  
  Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
  
  restarts (invokable by number or by possibly-abbreviated name):
    0: [CONTINUE] Ignore runtime option --eval "(progn (load \"/c/Users/XI-USER/lispmusic/cm/bin/../src/cm.lisp\" :verbose nil) (cm))".
    1: [ABORT   ] Skip rest of --eval and --load options.
    2:            Skip to toplevel READ/EVAL/PRINT loop.
    3: [EXIT    ] Exit SBCL (calling #'EXIT, killing the process).
  
  (LOAD "/c/Users/XI-USER/lispmusic/cm/bin/../src/cm.lisp" :VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST T :EXTERNAL-FORMAT :DEFAULT)
  0]
  </code></pre>
  
  <ol start="4">
  <li><p>And nothing via cygwin64 (black DOS screen starts up and closes immediately)</p></li>
  <li><p>I get these type of errors trying to load CM in Emacs:
  <strong>M-x cm -></strong> "<em>Wrong type argument: stringp, nil</em>"
  and <strong>CL-USER> (in-package :cm) -></strong> "<em>The name "CM" does not designate any package.
  [Condition of type SB-KERNEL:SIMPLE-PACKAGE-ERROR]</em>"</p></li>
  <li><p>Interestingly, when (and only when) I start up slime, and then type C-c C-d c the CM find dictionary does work!</p></li>
  </ol>