On Mon, 20 Aug 2012 10:55:24 +0900
"Stephen J. Turnbull" <stephen(a)xemacs.org> wrote:
Sean MacLennan writes:
> It looks like this only works if you don't require the packages
> from your init.el file.
?? Requiring a *package* (in this context, at least) means requiring
an auto-autoloads library. Why would you do that?
Requiring a library from the "wrong" version of the package, on the
other hand, should cause nothing but trouble (no warnings, though).
I require packages all the time... here is an example from my init.el
file:
(eval-when-compile (require 'cc-mode))
;; This hook is run for all the modes handled by cc-mode
(defun my-c-mode-common-hook ()
(c-set-style "linux")
(c-toggle-hungry-state 1) ;; hungry delete
(setq c-tab-always-indent 'other) ;; real tabs in strings and comments
(setq case-fold-search nil) ;; C is case sensitive
;; Let's try this...
(setq c-enable-xemacs-performance-kludge-p t)
; (easy-menu-add-item nil '("C") "----")
; (easy-menu-add-item nil '("C") ["lxr" lxr-at-point lxr-url])
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
Is there a better way to do this?
Cheers,
Sean
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta