fivemack: (Default)
Tom Womack ([personal profile] fivemack) wrote2006-12-20 01:15 pm
Entry tags:

emacs question

My .emacs file contains the line

(set-default-font "7x13")

and indeed whenever I load a file into emacs, it comes up in 7x13.

But if I do C-x 5 2 to get another emacs window, the file in that window appears in a much larger and uglier font with inelegant serifs. How do I really set the default font?

[note: I don't run emacs-client, I edit files with 'emacs foo' on the command-line, so often I have lots of separate emacs processes; also, by 'window' I mean a window-system window rather than whatever emacs's internal jargon 'window' means]

(Anonymous) 2006-12-20 06:19 pm (UTC)(link)
Yeah, that's a tolerable crude solution for people like me, who try to keep one long-running emacs and use emacsclient to load things into it. Which is not what Tom says he does, and I could certainly see finding it a pain to remember to type each time.

Hence
alias e="emacs -fn 7x13"
or suitable equivalent for the shell in use. Having your various setup files keep e defined suitably (to run the editor directly, run emacsclient, or whatever) in the right contexts makes a lot of things simpler to remember. Also shorter to type.

[identity profile] dd-b.livejournal.com 2006-12-20 06:21 pm (UTC)(link)
Oops, that was me. I didn't think I'd logged this out.

I suppose I'd better go back and reread my friends list for the locked posts, then.