From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Subject: Preferences support for Carbon Emacs
Date: Wed, 16 Mar 2005 17:39:37 +0900 [thread overview]
Message-ID: <wlsm2w7zna.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
Mac OS X has a customization mechanism called "preferences".
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Concepts/UserPreferences.html
I've just installed some changes that enable Carbon Emacs to get
preferences through X Resources functions (like registry on W32).
Now users can use preferences in place of X Resources.
For example, adding a line
Emacs.cursorType: bar
to ~/.Xresources in X11 corresponds to the execution of
% defaults write org.gnu.Emacs Emacs.cursorType bar
in Carbon. One can use boolean or numeric values as well as string
values.
% defaults write org.gnu.Emacs Emacs.toolBar -bool off
% defaults write org.gnu.Emacs Emacs.lineSpacing -int 3
Of course, you can directly edit your own
~/Library/Preferences/org.gnu.Emacs.plist with Property List Editor or
your favorite text editor :-)
I also added a function that reads arbitrary application preference
value and converts it a Lisp object. For example, evaluation of
(mac-get-preference "AppleLanguages") results in an array ["ja" "en"
"fr" "de" ...] of strings in my environment. Maybe this can be used
for setting up the default language environment at startup time.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
next reply other threads:[~2005-03-16 8:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 8:39 YAMAMOTO Mitsuharu [this message]
2005-03-16 8:59 ` Preferences support for Carbon Emacs YAMAMOTO Mitsuharu
2005-04-14 9:55 ` YAMAMOTO Mitsuharu
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=wlsm2w7zna.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).