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

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

Loading .el file


From: Dennis Stello
Subject: Loading .el file
Date: Mon, 25 Mar 2013 18:23:19 +1100 (EST)

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

Attachment: mesa-minor-mode.el
Description: Binary data


reply via email to

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