all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Hook questions
@ 2006-08-29  0:03 Hadron Quark
  2006-08-29 14:10 ` Johan Bockgård
  0 siblings, 1 reply; 3+ messages in thread
From: Hadron Quark @ 2006-08-29  0:03 UTC (permalink / raw)



1) Whats the difference between, say c-mode-hook and c-mode-common-hook?

2) If I "describe-mode" for while editing a c file I see the hook name
   documented as :

,----
| The hook `c-mode-common-hook' is run with no args at mode
| initialization, then `c-mode-hook'.
`----

The info mode (while reading info files) reveals no such hook. Can I
create one out of the blue?

Thanks for your patience -  theres a lot to learn and sometimes the
amount of info online and in emacs makes it hard to locate the info to
questions that pop up mid "discovery" as it were.



-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hook questions
  2006-08-29  0:03 Hook questions Hadron Quark
@ 2006-08-29 14:10 ` Johan Bockgård
  2006-08-29 15:12   ` Hadron Quark
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2006-08-29 14:10 UTC (permalink / raw)


Hadron Quark <hadronquark@gmail.com> writes:

> 1) Whats the difference between, say c-mode-hook and
> c-mode-common-hook?
[...]
> The info mode (while reading info files) reveals no such hook.

Try the "CC Mode" manual (info "(ccmode)CC Hooks"):

    -- Variable: c-mode-common-hook
        Common hook across all languages.  It's run immediately before
        the language specific hook.

    -- Variable: c-mode-hook
    -- Variable: c++-mode-hook
    -- Variable: objc-mode-hook
    -- Variable: java-mode-hook
    -- Variable: idl-mode-hook
    -- Variable: pike-mode-hook
    -- Variable: awk-mode-hook
        The language specific mode hooks.  The appropriate one is run
        as the last thing when you enter that language mode.

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hook questions
  2006-08-29 14:10 ` Johan Bockgård
@ 2006-08-29 15:12   ` Hadron Quark
  0 siblings, 0 replies; 3+ messages in thread
From: Hadron Quark @ 2006-08-29 15:12 UTC (permalink / raw)


bojohan+news@dd.chalmers.se (Johan Bockgård) writes:

> Hadron Quark <hadronquark@gmail.com> writes:
>
>> 1) Whats the difference between, say c-mode-hook and
>> c-mode-common-hook?
> [...]
>> The info mode (while reading info files) reveals no such hook.
>
> Try the "CC Mode" manual (info "(ccmode)CC Hooks"):

Thanks. I feel like such a prick sometimes when I miss this stuff. But
there is so much info in so many different places I sometimes give up
and reach out for help. Thanks a lot.

Anyway, I mean, "c-mode-common-hook" : who would have guessed its for
ALL languages. It begins with "c" :(


>
>     -- Variable: c-mode-common-hook
>         Common hook across all languages.  It's run immediately before
>         the language specific hook.
>
>     -- Variable: c-mode-hook
>     -- Variable: c++-mode-hook
>     -- Variable: objc-mode-hook
>     -- Variable: java-mode-hook
>     -- Variable: idl-mode-hook
>     -- Variable: pike-mode-hook
>     -- Variable: awk-mode-hook
>         The language specific mode hooks.  The appropriate one is run
>         as the last thing when you enter that language mode.
>
> -- 
> Johan Bockgård

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-29 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-29  0:03 Hook questions Hadron Quark
2006-08-29 14:10 ` Johan Bockgård
2006-08-29 15:12   ` Hadron Quark

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.