Results 1 to 2 of 2
I've recently started using GNU emacs and I'm liking it so far, I've read the tutorial that comes with it and it's very good but I have some questions that ...
- 12-06-2008 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 12
Emacs tutorials?
I've recently started using GNU emacs and I'm liking it so far, I've read the tutorial that comes with it and it's very good but I have some questions that aren't covered in the tutorial.
Is there a way to change the fonts? Maybe add the support for true type fonts?
Can I change the color scheme?
Is there a way that I can add snippets? For example type word then I hit a keyboard shorcut and it will insert code or text.
Any good tutorials for Emacs out there besides the official one? I checked Oreilly and found a Learning Emacs book, is it good?
- 12-07-2008 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
> colors...fonts
assuming you are using an X-window system, you
control these things from .Xresources. Here's
what I use:
!.Emacs
!called by .Xresources
!#include "./emacs"
emacs.dialog*.font: 5x7
emacs.pane.menubar.font: -adobe-bookman-light-i-*-*-*-140-*-*-p-*-iso8859-2
!emacs.font: -adobe-times-medium-r-*-*-24-*-*-*-*-*-*-*
emacs*font: -schumacher-*-*-*-*-*-14-*-*-*-*-*-*-*
emacs.verticalScrollBars: off
emacs.pane.menubar.horizontalSpacing: 12
emacs.pane.menubar.height: 22
emacs.paned.modeline.font: 5x7
emacs.paned*modeline.font: 5x7
emacs.modeline.attributeForeground: snow
emacs.modeline.attributeBackground: DarkOrchid
emacs.foreground: snow
emacs.background: navy
emacs*foreground: snow
emacs*background: DarkOrchid
emacs*cursorColor: limegreen
emacs*pointerColor: DeepPink
emacs*BorderColor: dodgerblue
!emacs.pane.menubar.foreground: yellow
!emacs.pane.menubar.background: dodgerblue
!emacs.font: 5x7
!emacs?font: 10x20
!emacs*font: 12x24
lines starting with '!' are comments. Substitute
colors/fonts as you like.
> snippets
1 way: snippet in one window (eg, firefox) text in
emacs in another: highlight snippet, move to emacs
window, middle click.
2 way: snippet in one emacs buffer, text in
another: highlight snippet, <ctrl>-W to delete,
move to other buffer, <ctrl>-Y to retrieve
> OReilly book
OK: but except for 2 way above, all the rest of
this reply is from X.the sun is new every day (heraclitus)


Reply With Quote