[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ubuntu font of wisdom

From: James K. Lowden
Subject: Ubuntu font of wisdom
Date: Thu, 15 Dec 2016 17:43:58 -0500

$ cat /etc/debian_version 
$ /usr/bin/emacs --version | grep 2[45]
GNU Emacs 24.5.1
$ /usr/local/bin/emacs --version | grep 2[45] 
GNU Emacs 25.1.1

I just upgraded emacs from source (see makefile below for steps)
because 25 is not packaged for Ubuntu 16.04.1 LTS.  Unfortuately, my
new version no longer has access to 

        DejaVu Sans Mono-10

which is what I usually use.  Since the old version is still installed
and still uses that font, I know it's still installed and available.
What I don't know is how to get Emacs to use it.  

On the old version, "describe-font" starts out this way:

name (opened by): -PfEd-DejaVu Sans
        full name: DejaVu Sans Mono:pixelsize=13:....

I guess it's an outline font because xfontsel does not report it.  

My X server is XQuartz on macOS.  I usually display emacs remotely using
ssh X forwarding.  


1.  How to have version 24 report where it found its font? 
2.  How to configure version 25 the same way?

While I'm at it, the new version uses the ugly Motif-gray toolbar,
while the packaged version uses a much more attractive, colorful
toolbar (and puts the scrollabar on the right).  Is that a build
option, or a theme of some kind?  

A lot of the advice I've read in searching basically says how to
install fonts, and claims emacs will DTRT when that's done.  I have the
font, and it is accessible.  It's just not being accessed.  

Many thanks.  


== Makefile (installation & build steps) ==
EMACS = emacs-25.1
SOURCES = /etc/apt/sources.list
TMPSRCS = /tmp/$(notdir $(SOURCES))
PKG.OPTIONS = --pkgname emacs --maintainer jkl --pkgversion 25.1

all: .checkinstall

.checkinstall: .update .build $(EMACS)/build/description-pak
        (cd $(EMACS)/build && sudo checkinstall $(PKG.OPTIONS))

        echo 'emacs is the new black' > $@

.update: .source-ok
        sudo apt-get -y update
        @touch $@

.source-ok: $(PATCH)
        sudo patch < $(PATCH) $(SOURCES)
        @touch $@

# apt update fails unless some sources are mentioned in sources.list 
        test -f $(TMPSRCS).orig || cp $(SOURCES) $(TMPSRCS).orig
        chmod -w $(TMPSRCS).orig
        sed -E 's/^# deb-src/deb-src/' $(SOURCES) > $(TMPSRCS)
        diff -u $(TMPSRCS).orig $(TMPSRCS) > $(PATCH)~ || test $$? = 1
        mv $(PATCH)~ $(PATCH)

.build: .fetched
        mkdir -p $(EMACS)/build
        (cd $(EMACS)/build && nohup ../configure > log)
        (cd $(EMACS)/build && nohup make -j8 > log)

.fetched: $(EMACS).tar.xz
        pax -Jrf $^
        @touch $@


.build-dep: .pre-checkinstall
        sudo apt-get build-dep emacs24
        @touch $@

        sudo apt install -y build-essential checkinstall
        @touch $@
== EOF ==

reply via email to

[Prev in Thread] Current Thread [Next in Thread]