[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
When my c++ mode hook is run, I want to print the value of some variable
From: |
Eric Lilja |
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 |
User-agent: |
G2/1.0 |
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
- When my c++ mode hook is run, I want to print the value of some variables,
Eric Lilja <=