
Emacs is
Editing MACroS, the
extensible, customizable, self-documenting
real-
time dis
play editor.
"'Emacs loves every user.'" --
HOSEF.org/media/audio/PFOSSCON-RichardStallman-2007.01.20.ogg
The paper "The Hi
story of the
GPL" shows how
Emacs was involved.
MMacs
(Material macros) would be spoken with almost no silence between the "Em" and "Macs". So the
pronunciation should cause the
listener to question the presenter.
EmacsWiki.org
Emacsen.org >>Life with the extensible, self-documenting text editor.
Savannah.GNU.org/projects/emacs
Zile.sf.net >>Zile is Lossy Emacs
AngeFTP, EFS or Tramp may be
used for remote URLs, and the
syntax is s
lightly
diffe
rent
/user@host.org:
/ssh:
user@
host.org:
(defun fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_FULLSCREEN" 0)))
Problem: Character encoding is
fscked when
copying from
Firefox
sf.net/projects/skeldal >>The Gates of Skeldal - Sources of the legendary game first released at 1998 by NapoleonGames. Sources are now under the GPL.%G %@ %G %@ %G %@ %G %@ %G %@ Brny Skeldalu, legendarn hra z roku 1998 od spole%Gč%@nosti NapoleonGames. Zdrojky jsou nyn pod GPL.
Solution:
Copy from the
source
file instead. Select the area,
right-click and choose "View Selection
Source"
sf.net/projects/skeldal >>The Gates of Skeldal - Sources of the legendary game first released at 1998 by NapoleonGames. Sources are now under the GPL. Brány Skeldalu, legendarní hra z roku 1998 od společnosti NapoleonGames. Zdrojáky jsou nyní pod GPL.
__un
working
devlog at
tempt for
Emacs from CVS
(this is called 'HEAD' or 'TRUNK', not a branch)
$ sudo apt-get install cvs
$ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
$ cd emacs
$ ./configure --with-gtk --with-xft --enable-font-backend --with-freetype --without-toolkit-scroll-bars
Which
outputs a bunch of stuff including:
> Should Emacs use mmap(2) for buffer allocation? no
Hmm... Would
Emacs load large
files faster and more
memory
efficient with mmap? If so, How do I enable it? Why is it not enabled by default?
Ok, so...
$ make bootstrap
$ make
Ok, looks
good, now try to enable antialiased
fonts:
$ ./src/emacs --enable-font-backend --font "Bitstream Vera Sans Mono-10"
> No fonts match `Bitstream Vera Sans Mono-10'
Hm. What is that goofy
font identifier
syntax...? What will
work? How about an argument that lists all the
fonts currently
installed like:
$ ./src/emacs --list-font-backend-fonts
Would show all
font names Emacs can
use in the form expected.
references:
http://www.cs.huji.ac.il/support/emacs/font.html "'CSE HUJI Emacs Fonts HOWTO'"
http://pdimitar.wordpress.com/2006/11/30/gnu-emacs-use-ttf-font-even-if-it-is-looks-like-not-installed
http://peadrop.com/blog/category/computers/emacs/ "'Pretty Emacs'"
http://www.dexterslabs.com/danny/xft.html "'Configuring the Xft extension (including antialiasing)'"
http://www.dexterslabs.com/danny/XftConfig
http://keithp.com/~keithp/render/Xft.tutorial
http://times.usefulinc.com/2005/12/02-emacs-xft
http://blog.xfce.org/?p=175
EmacsWiki.org/cgi-bin/wiki/XftGnuEmacs
EmacsWiki.org/cgi-bin/wiki/DisplayingNonAsciiCharacters
__
"'From: Eli Barzilay (eli@barzilay.org)
Subject: Re: Emacs Undo across sessions and files.
View: Complete Thread (6 articles)
Original Format
Newsgroups: comp.emacs
Date: 2001-11-27 13:22:11 PST
"Bora Eryilmaz" <beryilma@mathworks.com> writes:
> Is there a way to make Emacs remember the changes to files between emacs
> sessions/file edits.
>
> I have two scenarios in mind:
>
> 1. I open and edit a file, main.tex. Close Emacs, Re-run Emacs, and re-open
> main.tex. I want Emacs to remember the changes I made to main.tex in the
> previous session so that I can do Undo.
>
> 2. I open a file, main.tex. I edit the file. I kill the buffer (close the
> file). I re-open the file, main.tex. I again want Emacs to remember the
> changes I've made before I closed the file last time.
This should do the trick, but it's better suited to something that
will store local buffer info in some helper file, sort of like
desktop.el, but based on files. I'm sure there's something that does
that somewhere, but couldn't find it in a quick search.
----------------------------------------------------------------------
(defun save-undo-info ()
(let ((name (make-backup-file-name buffer-file-name))
(undos buffer-undo-list))
(when (and name undos (not (eq t undos)))
(let ((after-save-hook nil))
(with-temp-file (concat name "-undos~")
(insert "; undo info\n(\n")
(dolist (u undos)
(unless (and (consp u) (markerp (car u)))
(insert (format "%S\n" u))))
(insert ")\n"))))))
(defun load-undo-info ()
(let ((name (make-backup-file-name buffer-file-name))
(undos nil))
(when (and name (not buffer-undo-list)
(file-readable-p (concat name "-undos~")))
(let ((find-file-hooks nil)) ; not really needed
(with-temp-buffer
(insert-file (concat name "-undos~"))
(setq undos (read (current-buffer))))))
(when undos (setq buffer-undo-list undos))))
(add-hook 'find-file-hooks 'load-undo-info)
(add-hook 'after-save-hook 'save-undo-info)
----------------------------------------------------------------------
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
www.barzilay.org/ Maze is Life!
'" --
groups.google.com/groups?q=barzilay+emacs+undo&hl=en&lr=&selm=skherfdi4g.fsf%40mojave.cs.cornell.edu&rnum=3
"'
Re: How can I determine what the default font it?
From: Floyd L. Davidson
Subject: Re: How can I determine what the default font it?
Date: Thu, 26 Feb 2004 02:25:20 -0900
User-agent: gnus 5.10.6/XEmacs 21.4.15/Linux 2.6.0
exits funnel wrote:
>Hello,
>
>I've just upgraded to emacs 21.3.1 from emacs 19.7(?)
>running on RedHat Linux. It works great but for one
>immediate problem. The default font size is much
>smaller and I can barely read it. I've done a bit of
>research (I'm pretty new to Linux and well as emacs)
>on changing the font size but I have a few quick
>questions. First of all it seems I can do this either
>by modifying my .emacs file or by modifying
>.Xdefaults. Which approach is better?
You'll want to note that basically all of this applies not only
to Emacs, but to xterms as well, where you will probably have
exactly the same problem. (I use a 1333x1000 resolution screen,
and have fits trying to work out fonts that provide readable
text in windows of the right size.)
Probably .Xdefaults is best, because that relates closely to the
X configuration (which is where the screen resolution is
chosen). You can use the same ~/.emacs file, regardless of the
X configuration if you specify font sizes with the X
configuration rather than the Emacs configuration.
There still seem to be lots of "gotchas", and I haven't worked
it out well enough for GNU Emacs (mostly because I normally use
XEmacs, and they don't work quite the same). In particular,
it is necessary to go through the faces customization menu
and set fonts. And I've found that some fonts simply can't
be manipulated by GNU Emacs (for reasons that I do not at all
understand). For example, I rather like, in XEmacs, using the
-misc-fixed-medium-r-semicondensed fonts. But GNU Emacs can't
scale them, and attempts to do so result in very small sizes.
One comment on testing changes to ~/.Xdefaults before going on
to the rest of this. To test a new configuration you can use
xrdb to effect the new configuration, but there are two ways
to do it.
xrdb -merge .Xdefaults
is usually recommended, but it will not delete something you
have removed from .Xdefaults. It will add, and it will change,
but no deletions. But,
xrdb .Xdefaults
will replace the existing definitions with the new definitions,
which means something that is not defined in the new file will
not exist after that command. Hence it will delete what you've
removed, but it also deletes everything from any other
initialization files. I.e., it's good for testing, but you'll
want to restart X when you are done.
>I'm assuming
>if I change .Xdefaults this will affect other programs
>besides emacs.
Only if you want it to. For example,
*font: -*-courier-*-*-*-*-23-*-*-*-*-*-iso8859-1
will affect virtually everything ending in "font" that is not
otherwise specifically set, and hence is probably not a good
idea. There are two ways to be specific,
Emacs*font: -*-courier-*-*-*-*-23-*-*-*-*-*-iso8859-1
Emacs.font: -*-courier-*-*-*-*-23-*-*-*-*-*-iso8859-1
will both affect either Emacs or XEmacs, but nothing else. While
XEmacs*font: -*-courier-*-*-*-*-23-*-*-*-*-*-iso8859-1
XEmacs.font: -*-courier-*-*-*-*-23-*-*-*-*-*-iso8859-1
will both affect only XEmacs and not GNU Emacs.
The difference between using the '*' wildcard or not, is that
the wild card will set all Emacs resources that end in "font",
that are not more specifically defined, while using the "."
specifies one and only one resource. Hence, if you have only
Emacs.font: -*-courier-*-*-*-*-23-*-*-*-*-*-iso8859-1
you might have not set several fonts, and they will default to
something like "fixed", which is exceedingly small and moreover
Emacs can neither scale it or find variations for such as
bold, italic, or underline.
But if you set
Emacs*font: 9x15
you're screwed too, because everything is set to a font that
Emacs cannot manipulate.
However, I don't know that Emacs has any resource ending in
"font" other than the default, so it (may or) may not make any
difference at all. But definitely with other programs that is
significant... (for colors and other resources as well as
fonts).
>My other question is how can I find
>out what font emacs is currently displaying? Thanks
>in advance for any replies.
You can do "M-x list-faces-display" which will give you
a line of text for each face that is defined. It gives you
the variable for that particular face, and you can select
from that buffer any of the face names and change the font
or other properties. For example, with some fonts being
too small (once you have the basic defaults set in .Xdefaults),
you can browse the list and change the ones that are hard
to read.
There are some strange things happen with fonts in GNU Emacs
that you may or may not bothered by. One is the way tabs are
offset. I have the following in my .Xdefaults file, and used it
for checking the results of font changes.
#
# When playing with fonts for GNU Emacs, the tabs do not
# necessarily line up where they should when fonts are scaled.
# The following chart uses tabs between the 'T' characters, and
# spaces between the '|' characters. They should line up
# exactly...
#
# T T T T T T T T T
T
#1234567890123456789012345678901234567890123456789012345678901234567890123456789
# | | | | | | | | |
|
Note the comment about tabs between the "T" characters on the
chart. If, between my writing this and you reading it, they get
changed to spaces, it won't provide the needed value...
A couple recommendations. Change the size to suit your needs,
but for menus and pop-ups the proportional spacing with a
helvetica font is much nicer. I use bold to make it more readable
too. YMMV, of course.
#
# Font menus
#
Emacs*menubar*font: -*-helvetica-bold-r-*-*-16-*-*-*-*-*-iso8859-*
Emacs*popup*font: -*-helvetica-bold-r-*-*-16-*-*-*-*-*-iso8859-*
Here is what I like for the default font. Unfortunately, GNU Emacs
(unlike XEmacs) can't seem to scale this font.
Emacs.font: -misc-fixed-medium-r-semicondensed-*-25-*-100-*-*-*-iso8859-1
Here is what I set for attribute fonts.
Emacs.default.attributeFont: -*-courier-*-*-*-*-23-*-*-*-*-*-iso8859-1
Emacs.bold.attributeFont: -*-courier-bold-r-*-*-23-*-*-*-*-*-iso8859-1
Emacs.italic.attributeFont: -*-courier-medium-r-*-*-23-*-*-*-*-*-iso8859-1
Emacs.bold-italic.attributeFont: -*-courier-bold-r-*-*-23-*-*-*-*-*-iso8859-1
(Note that I don't use the oblique font for italics, because it is
just too ugly to look at and hard to read.)
However, despite having set those in ~/.Xdefaults, I'm pretty
sure that I've changed every one of them using the customize
menu, and therefore that is overridden by custom-set-faces
written to ~/.emacs.el. The problem is that while the courier
fonts do scale, it is at intervals and is not a continuous
allowable range, and the trick is to get a size to most closely
match the default font's size.
--
Floyd L. Davidson web.newsguy.com/floyd_davidson
Ukpeagvik (Barrow, Alaska) address@bogus.example.com
'" --
lists.gnu.org/archive/html/help-gnu-emacs/2004-02/msg00676.html
http://groups-beta.google.com/group/comp.lang.lisp/msg/30084d4afe3009da?hl=en