Commits

Peter Szilagyi committed 0e791dc

HASKELL-SITE-FILE doesn't provide the feature, so use LOAD-LIBRARY
rather than REQUIRE.

Comments (0)

Files changed (1)

elisp/jane/jane-micro-features.el

    ;; prefer side-by-side buffers
    '(split-height-threshold nil)))
 
+;; DOESN'T MATTER - FRAME-PARAMETER BEING A C FUNCTION IS SIGNIFICANT;
+;; ADVICE APPARENTLY NOT CALLED IN SOME IMPORTANT CASES.
+;;
+;; ;; When you run "emacs --daemon", there is an initial selected frame,
+;; ;; but it's a nonce, and in particular, its font is bogus.  The colors
+;; ;; are OK, though.
+;; (defadvice frame-parameter (around jane-micro-features.el activate)
+;;   "Don't propagate the bogus font from non-X frames."
+;;   (let ((val ad-do-it))
+;;     (print `((frame-parameter ,(ad-get-arg 0) ,(ad-get-arg 1)) => ,val))
+;;     (if (and (eq 'font (ad-get-arg 1))
+;;              (not (font-info val (ad-get-arg 0))))
+;;         nil
+;;       val)))
+
 
 
 ;; (Jane.global-keybindings)
 
 ;; (Jane.haskell)
 (defun Jane.haskell ()
-  (require 'haskell-site-file)
+  (load-library "haskell-site-file")
   (require 'haskell-mode)
   (require 'haskell-indent)
   (add-hook 'haskell-mode-hook