Category Archives: Emacs

Anything related to the GNU Emacs editor

CPUTYPE woes with editors/emacs on FreeBSD/i386 stable/10

On my FreeBSD/i386 stable/10 and head VMs I have set up clang as the system compiler.

CC=clang
CXX=clang++
CPP=clang-cpp

KERNCONF=VBOX

I have also set CPUTYPE to corei7 as this is accepted by clang and pretty much describes the capabilities of the host system.

CPUTYPE?=corei7

Continue reading CPUTYPE woes with editors/emacs on FreeBSD/i386 stable/10

UTF-8 in GNU Emacs

I nicked the following from http://linux.seindal.dk/2004/08/07/gnu-emacs-and-utf-8-locale/:

(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

You may also specify your preference toward the Unix newline convention:

(setq locale-coding-system 'utf-8-unix)
(set-terminal-coding-system 'utf-8-unix)
(set-keyboard-coding-system 'utf-8-unix)
(set-selection-coding-system 'utf-8-unix)
(prefer-coding-system 'utf-8-unix)