]> code.delx.au - gnu-emacs-elpa/blobdiff - multishell.el
multishell - use eval-after-load when with-eval-after-load isn't around.
[gnu-emacs-elpa] / multishell.el
index 09635f972b6eb49875d67f64422e72b6982223fa..0798ee0151d2ac3d9567d1aad5de96bb87774ca3 100644 (file)
@@ -176,8 +176,11 @@ lisp, eg: (global-set-key \"\\M- \" 'multishell-pop-to-shell)."
   :group 'multishell)
 
 ;; Implement the key customization whenever the package is loaded:
-(with-eval-after-load "multishell"
-  (multishell-implement-command-key-choice))
+(if (fboundp 'with-eval-after-load)
+    (with-eval-after-load "multishell"
+                         (multishell-implement-command-key-choice))
+  (eval-after-load "multishell"
+    (multishell-implement-command-key-choice)))
 
 (defcustom multishell-pop-to-frame nil
   "*If non-nil, jump to a frame already showing the shell, if another one is.