|
From: | lisa-asket |
Subject: | with-eval-after-load with sh-mode |
Date: | Fri, 2 Jul 2021 10:49:00 +0200 (CEST) |
>From: Arthur Miller <arthur.miller@live.com> >To: lisa-asket@perso.be >Subject: Re: with-eval-after-load with sh-mode >Date: 02/07/2021 10:42:38 Europe/Paris >Cc: help-gnu-emacs@gnu.org >lisa-asket@perso.be writes: >> How can I use `with-eval-after-load` with sh-mode? >> >> Basically I want to defer call to sh-mode-map until sh-mode is loaded >> >> (with-eval-after-load 'sh >Try this: >(with-eval-after-load 'sh-script >(message "My cool one-time config follows here ...")) >sh-mode is defined in lisp/progmodes/sh-script.el. What is the difference between (with-eval-after-load 'sh-script (myfun)) and (add-hook 'sh-mode-hook #'myfun)
[Prev in Thread] | Current Thread | [Next in Thread] |