[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to check if cperl-mode.el file is loaded
From: |
eric_powell |
Subject: |
How to check if cperl-mode.el file is loaded |
Date: |
Thu, 20 May 2010 14:26:59 -0700 (PDT) |
Hello,
I am trying to use the newest version of cperl-mode and, although I am not
getting errors, I still don’t think it’s loaded correctly. I downloaded the
cperl-mode.el file from http://github.com/jrockway/cperl-mode and placed it
in my elisp directory.
What gets me is that when I check the version (C-h v cperl-version) it says
4.23, which is the same version number that my emacs originally came with.
Is there anything in particular that I should notice different between v4.23
and the current version at the website above?
On a side note, in my .emacs file, I notice that if I put the require
statement after the ‘add-to-list’ command that I get an error: ‘error:
"Invalid escape character syntax"’. That doesn’t seem right to me, but when
I switched the order of the two it went away, so I left it like that.
Here is my .emacs file:
####################################################################################
;; .emacs
(require 'cperl-mode)
(add-to-list 'load-path "~/elisp")
;; ---- CPERL MODE ----- ;;
;;; cperl-mode is preferred to perl-mode
;;; "Brevity is the soul of wit" <foo at acm.org>
(defalias 'perl-mode 'cperl-mode)
;;; uncomment this line to disable loading of "default.el" at startup
;; (setq inhibit-default-init t)
;; turn on font-lock mode
(when (fboundp 'global-font-lock-mode)
(global-font-lock-mode t))
;; enable visual feedback on selections
;(setq transient-mark-mode t)
;; default to better frame titles
(setq frame-title-format
(concat "%b - emacs@" (system-name)))
;; default to unified diffs
(setq diff-switches "-u")
;; always end a file with a newline
;(setq require-final-newline 'query)
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(comment-column 80)
'(truncate-partial-width-windows t))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
####################################################################################
Thank you for your help :)
-eric
--
View this message in context:
http://old.nabble.com/How-to-check-if-cperl-mode.el-file-is-loaded-tp28626296p28626296.html
Sent from the Emacs - Help mailing list archive at Nabble.com.