help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Loading .el file


From: Dennis Stello
Subject: RE: Loading .el file
Date: Tue, 26 Mar 2013 09:54:18 +1100 (EST)

Thanks a lot for that...works!

My browwer tricked me in believing that when I chose Save Link As... and it suggested mesa-minor-mode.el as file name that this actually was the file and not some html associated w the link.

Dennis

On Mon, 25 Mar 2013, Doug Lewan wrote:

Dennis,

The file you attached is an HTML file, not an emacs lisp file.

I bet if you find the true .el file that you're looking for, things will go 
much more easily. A more-circuitous-than-I'd-have-liked search led me to this 
URL: https://raw.github.com/jschwab/mesa-minor-mode/master/mesa-minor-mode.el.

I make no guarantees, but it satisfies all of your requirements that a 
layperson could understand.

I hope this helps.

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224

Journalism is printing what someone else does not want printed. Everything else 
is public relations. - George Orwell


-----Original Message-----
From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
[mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
Behalf Of Dennis Stello
Sent: Monday, 2013 March 25 03:23
To: help-gnu-emacs@gnu.org
Subject: Loading .el file

Hi,

I have been trying to load a custom .el file in emacs to add some
personal
functionalities when I run emacs.
The file is called mesa-minor-mode.el and is attach here for
completeness.  I have saved it in my ~/emacslisp/ and after a few
unsuccesful attempts to get it working I also saved it in ~/.emacs.d/
just to be sure emacs was not being sensitive to where the file was.

I run emacs version: GNU 21.4.1 x86_64-redhat-linux-gnu.

From various online help and colleagues I have ended up trying (without
luck) lots of permutations in my .emacs of the suggestions I received.
These incl (after each permutation I include here the error message
when
starting emacs):

;; (1)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(require 'mesa-minor-mode)
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode"
;; (2)
(add-to-list 'load-path "~/emacslisp/")
(require 'mesa-minor-mode)
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (3)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode.el"
;; (4)
(add-to-list 'load-path "~/emacslisp/")
(load "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (5)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode"
;; (6)
(add-to-list 'load-path "~/emacslisp/")
(load "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (7)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el"
;; (8)
(add-to-list 'load-path "~/emacslisp/")
(load "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el"
;; (9)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "emacslisp/mesa-minor-mode"
;; (10)
(add-to-list 'load-path "~/emacslisp/")
(load "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (11)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load-file "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-
mode.el"
;; (12)
(add-to-list 'load-path "~/emacslisp/")
(load-file "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-
mode.el"
;; (13)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load-file "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode"
;; (14)
(add-to-list 'load-path "~/emacslisp/")
(load-file "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode"
;; (15)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load-file "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (16)
(add-to-list 'load-path "~/emacslisp/")
(load-file "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (17)
(add-to-list 'load-path "~/emacslisp/mesa-minor-mode/")
(load-file "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file",
"/suphys/stello/emacslisp/mesa-minor-mode"
;; (18)
(add-to-list 'load-path "~/emacslisp/")
(load-file "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file",
"/suphys/stello/emacslisp/mesa-minor-mode"

;; (19)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(require 'mesa-minor-mode)
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode"
;; (20)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(require 'mesa-minor-mode)
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode"
;; (21)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode.el"
;; (22)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode.el"
;; (23)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode"
;; (24)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "mesa-minor-mode"
;; (25)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el"
:; (26)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el"
;; (27)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "emacslisp/mesa-minor-mode"
;; (28)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "emacslisp/mesa-minor-mode"
;; (29)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-
mode.el"
;; (30)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-
mode.el"
;; (31)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode"
;; (32)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode"
;; (33)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (34)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "emacslisp/mesa-minor-mode.el")
;An error has occurred while loading `/suphys/stello/.emacs':
;Symbol's value as variable is void: <!DOCTYPE
;; (35)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/emacslisp/mesa-
minor-mode"
;; (36)
(setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path))
(load-file "emacslisp/mesa-minor-mode")
;An error has occurred while loading `/suphys/stello/.emacs':
;File error: "Cannot open load file", "/suphys/stello/emacslisp/mesa-
minor-mode"


I also tried to replace tilde in the above attempts with the full path
but
still no luck.  Also replacing emacslisp with .emacs.d, as well as incl
and removing '/' at the end of paths was tested.

Any help with this would be greatly appreciated.


Thanks
--
Dennis Stello



--
Dennis Stello



reply via email to

[Prev in Thread] Current Thread [Next in Thread]