[Aquamacs-devel] Question about icons in Aquamacs 2.0

Robert Goldman rpgoldman at sift.info
Fri Jul 30 01:07:49 UTC 2010


On 7/29/10 Jul 29 -5:14 PM, David Reitter wrote:
> On Jul 29, 2010, at 4:48 PM, Robert Goldman wrote:
> 
>> I have just (finally) updated to Aquamacs 2.0 and it seems very spiffy!
>>
>> However, I find that one thing is worse:  the tool bar in Auctex.
>>
>> I used to have a toolbar that had all the specific actions that I really
>> wanted to do when editing Latex, including "Latex," "Bibtex," "View," etc.
> 
> You should have those - at least I get them.  Try right-clicking in the toolbar to customize it.   The default toolbar should be adapted to the current major mode.
> If that doesn't work, I would look at whether AUCTeX is loaded properly (is the menu correct, or rather minimal?).  Start without customizations...  
> 
> Let me know when you know more!

OK, I know more, but I'm still puzzled.

I forgot that what I had done, because I am a keyboard guy, I turned off
all the toolbars.  And then I turned ON the toolbars only for latex
buffers, because even though I'm a keyboard guy, I never managed to
figure out how to issue the latex, bibtex, and view commands through the
keyboard...

So my emacs configuration has the following in it:

;;;---------------------------------------------------------------------------
;;; Controlling the tool bar
;;;---------------------------------------------------------------------------
(tool-bar-mode 0)                       ;in general, we want it /off/
(defun add-tool-bar-to-selected-frame ()
  "Sometimes we'd like the toolbar only on specific frames."
  (interactive)
  (modify-frame-parameters (selected-frame) '((tool-bar-lines . 1))))
(defun remove-tool-bar-from-selected-frame ()
  "Sometimes we'd like the toolbar only on specific frames."
  (interactive)
  (modify-frame-parameters (selected-frame) '((tool-bar-lines . 0))))
(defun latex-frame-p ()
  "Is this frame one that's displaying a buffer in latex mode?"
  (eq
   (buffer-local-value 'major-mode
                       (window-buffer (frame-selected-window
(selected-frame))))
   'latex-mode))
(defun add-tool-bar-to-latex-frames ()
  (if (latex-frame-p)
      (add-tool-bar-to-selected-frame)
      (remove-tool-bar-from-selected-frame)))
(add-hook 'window-configuration-change-hook
          'add-tool-bar-to-latex-frames)

In aquamacs 1.9, this would add the right toolbar back to the latex
frames.  However, in aquamacs 2.0, this seems to add only the /default/
toolbar to the aquamacs frames, not the latex-specific one.  :-(

Does anyone have a clue about how I could modify this so that it works
for the new aquamacs?

Or (as seems quite possible), am I going about this all wrong, and
should I replace it with something far better that will achieve the same
purpose?

thanks!
r


More information about the Aquamacs-devel mailing list