I’v been an emacs lover since i discovered unix back in the 20th century (emacs 20 something). Over the years I’ve used emacs with joy on a large variety of operating systems (old unices, linux, windows, mac os x) and it is still my editor of choice.
This page is for bits and pieces that I do not know where to put elsewhere.
After a long quest, I finally found the magic formula to strike down the infamous “raise frame no go” problem. It seems that this incantation has not been posted on EmacsWiki yet, so here it is :
(defadvice raise-frame (after make-it-work (&optional frame) activate) "Work around some bug? in raise-frame/Emacs/GTK/Metacity/something. Katsumi Yamaoka <firstname.lastname@example.org> posted this in http://article.gmane.org/gmane.emacs.devel:39702" (call-process "wmctrl" nil nil nil "-i" "-R" (frame-parameter (or frame (selected-frame)) 'outer-window-id)))
This time, we’re talking about CarbonEmacsPackage
So, I already had something like that in my .emacs
(tool-bar-mode nil) (require 'color-theme) (color-theme-initialize) (color-theme-jsc-dark) (add-to-list 'initial-frame-alist '(alpha . (85 85))) (add-to-list 'default-frame-alist '(alpha . (85 85)))
Which was nice. And I used to maximize “by hand” the window itself. But yesterday I discovered:
(defun maximize-frame () (interactive) (scroll-bar-mode) (mac-toggle-max-window))
(Note that this function works both for maximizing and un-maximizing).
Having scrollbar-less Terminal.app windows is yet another reason not to switch to 10.5
so that I can keep en eye on ‘em (I whish there was a “backlinks” feature on this wiki…)
And a few bug reports:
M-x gdbrequires the not-enough-documented
--annotate=3command line option. Otherwise, it will hang (this is not really a bug).
python-shift-rightdo not work when the mark is not active (and they should)