I'm using Emacs under Win64. I want to load a mode called gas-mode.el
on startup.
What I wrote:
C-x C-f c:/Program Files (x86)/emacs-23.1/.emacs
(autoload 'gas-mode "c:/Program Files (x86)/emacs-23.1/lips/gas-mode.el")
(setq auto-mode-alist
(append '(("\\.asm\\'" . gas-mode) ("\\.inc\\'" . gas-mode))
auto-mode-alist))
C-x C-s
C-x C-c
<Restarting...>
M-x gas-mode
Emacs' answer:
I never got a response different to:
[No match]
My Question:
How can I get Emacs to autoload gas-mode.el
on startup? Any idea? Thanks.
Where my .emacs
user init file's located:
Emacs tells me that I can find it in my the emacs folder of my program directory:
user-init-file
C-j
"c:/Program Files (x86)/emacs-23.1/.emacs"
I dont know too much about lisp or emacs lisp but you can go to the .emacs file where ever it is located. Then in that file add this code
Also in your load path you have "lips" and i believe it should be "lisp" so that might be one of the issues.
One more thing, you don't have to restart emacs every time you can go to the last parenthesis and do
C-x C-e
which will evaluate the form. To evaluate the bugger you would do M-X load-file /.emacs