Skip to content

Instantly share code, notes, and snippets.

@prayagupa
Last active February 8, 2017 19:26
Show Gist options
  • Save prayagupa/4748827 to your computer and use it in GitHub Desktop.
Save prayagupa/4748827 to your computer and use it in GitHub Desktop.
emacs for grails

0

prayag@Prayag:~/workspace_grails$ cp emacs-grails-mode/*.* /usr/share/emacs23/site-lisp/

prayag@Prayag:~/workspace_grails$ ls -l /usr/share/emacs23/site-lisp/
total 36
lrwxrwxrwx 1 root root    39 Feb  5 15:21 debian-startup.el -> ../../emacs/site-lisp/debian-startup.el
-rw-r--r-- 1 root root  3013 Feb  5 15:21 debian-startup.elc
drwxr-xr-x 2 root root  4096 Feb  5 15:21 dictionaries-common
-rw-r--r-- 1 root root 18205 Feb 10 12:36 grails-mode.el
-rw-r--r-- 1 root root     0 Feb 10 12:36 primary.org
-rw-r--r-- 1 root root  1353 Feb 10 12:36 README.md
-rw-r--r-- 1 root root   106 Sep 22 23:59 subdirs.el
prayag@Prayag:~/workspace_grails/gccount$ ls -l /usr/share/emacs/23.4/
total 28
drwxr-xr-x 12 root root  4096 Feb  5 15:21 etc
drwxr-xr-x  4 root root  4096 Feb  5 15:21 leim
drwxr-xr-x 23 root root 20480 Feb  5 15:21 lisp
lrwxrwxrwx  1 root root    23 Sep 23 00:01 site-lisp -> ../../emacs23/site-lisp

1

http://stackoverflow.com/a/4072162/432903

prayag@Prayag:~/workspace_grails$ emacs23 /home/prayag/.emacs.d/init.el

#2

$ emacs23
Warning (initialization): An error occurred while loading `/home/prayag/.emacs.d/init.el':

File error: Cannot open load file, project-mode

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

#3

prayag@Prayag:~/workspace_grails$ emacs23 --debug-init

Debugger entered--Lisp error: (file-error "Cannot open load file" "project-mode")
  require(project-mode)
  eval-buffer(#<buffer  *load*<2>> nil "/usr/share/emacs/23.4/site-lisp/grails-mode.el" nil t)  ; Reading at buffer position 422
  load-with-code-conversion("/usr/share/emacs/23.4/site-lisp/grails-mode.el" "/usr/share/emacs/23.4/site-lisp/grails-mode.el" nil t)
  require(grails-mode)
  eval-buffer(#<buffer  *load*> nil "/home/prayag/.emacs.d/init.el" nil t)  ; Reading at buffer position 23
  load-with-code-conversion("/home/prayag/.emacs.d/init.el" "/home/prayag/.emacs.d/init.el" t t)
  load("/home/prayag/.emacs.d/init" t t)
  #[nil "�\205\264
@prayagupa
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment