From: "Eric Lilja" <mindcooler@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: When my c++ mode hook is run, I want to print the value of some variables
Date: 1 Apr 2007 10:18:59 -0700 [thread overview]
Message-ID: <1175447939.407197.88300@q75g2000hsh.googlegroups.com> (raw)
How do I do that?
(defun my-cpp-mode-hook ()
(message "Running my-cpp-mode-hook")
(c-set-style "ellemtel")
; Say I want to print the value of access-label here, how? I can set
it with (c-set-offset 'access-label '-)
)
(add-hook 'c++-mode-hook 'my-cpp-mode-hook)
Is access-label even a variable? How do I print its value?
I'm running GNU Emacs 22.0.93.1 (i386-mingw-nt5.1.2600) of 2007-02-20
on MINDCOOLER
I know about the command C-c C-o btw...
- Eric
next reply other threads:[~2007-04-01 17:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-01 17:18 Eric Lilja [this message]
2007-04-02 19:34 ` When my c++ mode hook is run, I want to print the value of some variables james
2007-04-02 23:53 ` Eric Lilja
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1175447939.407197.88300@q75g2000hsh.googlegroups.com \
--to=mindcooler@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).