16 votes

How to set the default font size?

If you want to use a GUI font picker with previews and all, you may use M-x menu-set-font
xandfury's user avatar
  • 645
15 votes

Disable enlarged org-mode header appearance

Okay I found a solution that worked for me. (defun my/org-mode-hook () "Stop the org-level headers from increasing in height relative to the other text." (dolist (face '(org-level-1 ...
lookyhooky's user avatar
13 votes
Accepted

Set font for a specific file?

Maybe use a buffer-local value for face-remapping-alist to remap default to something else in that one buffer? See C-hig (elisp) Face Remapping RET e.g.: (face-remap-add-relative 'default :family "...
phils's user avatar
  • 51.1k
11 votes
Accepted

Emacs doesn't display color fonts at all

You're not doing anything wrong. Emacs for Linux uses XFT for font rendering, and XFT doesn't yet support the color fonts. See this mailing list thread from Dec 2015. Richard Stallman writes in that ...
amitp's user avatar
  • 2,541
10 votes

OTF ligature support in Emacs

emacs for now doesn't support ligatures (on OSX there is some support, but not on other platforms). However, emacs 24.4+ supports prettify-symbols-mode which in some ways is better than normal ...
Emmanuel Touzery's user avatar
10 votes
Accepted

Cocoa Emacs 24.5 Font Issues (Inconsolata-dz)

Emacs doesn't allow fonts that have hyphens in them. I would rename the font to something that doesn't contain hyphens. You can do this using ttx. For example, assuming you have a font named ...
sid-kap's user avatar
  • 544
9 votes
Accepted

Define a new key binding for font (Auctex)

Customize LaTeX-font-list: M-x customize-variable RET LaTeX-font-list RET. Select Math Prefix: for ^C key (the prefix C-c C-f is omitted) and add \mathscr{ to "Math Prefix:" field and } to "Math ...
giordano's user avatar
  • 3,255
8 votes
Accepted

Disable enlarged org-mode header appearance

Org headings are controlled by the faces org-level-1, org-level-2 etc. You can get to them via M-x customize-face. Unselecting the height attribute should set them to the default font size.
Tyler's user avatar
  • 22.3k
8 votes

How can I set default font in Emacs?

From: https://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html#Fonts Add a line to your init file: (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10"))
rchar01's user avatar
  • 447
7 votes

How to customize org-mode indentation?

Somehow I couldn't get the other answers to work for my setup, but the fastest and easiest fix that worked for me was: `M-x customize-face org-hide` Then, just change the Font Family attribute to ...
Christabella Irwanto's user avatar
7 votes
Accepted

Enlarge font size of function names in source code like Source Insight

This can be done pretty easily. press M-x RET customize-face RET font-lock-function-name-face RET and you'll get the customization menu for function name face. You can change any attribute you want(...
Chakravarthy Raghunandan's user avatar
7 votes

Is it possible to change the font size in specific buffers?

Yes, you can use a hook: (add-hook 'term-mode-hook (lambda () (text-scale-decrease 1)))
djangoliv's user avatar
  • 3,199
6 votes
Accepted

How do I set a specific font for Windows and Ubuntu?

You can check the system-type and use set-frame-font accordingly. Here is a short example: (setq my-prefered-font (cond ((eq system-type 'windows-nt) "consolas") ((eq system-type '...
theldoria's user avatar
  • 1,835
6 votes

Can't adjust font size anymore in emacs 25

This is most likely an instance of Emacs bug#25228 - custom-set-faces from init file ~/.emacs ignored. Basically Emacs is applying gconf settings which override your customization (Emacs versions ...
npostavs's user avatar
  • 9,203
6 votes

Surprising glyphs for some characters

Fonts are harder than they look, in general. If you look at the details you pasted from Emacs you'll see that it actually used Symbola, not Monospace, to render that character. Probably the Monospace ...
db48x's user avatar
  • 18.1k
6 votes
Accepted

Combining diacritics not combining visually

For emacs to be able to combine successive characters, you need to be using a font that has support for both of the characters. As per the comments, in your case that was 'DejaVu Sans Mono'.
rpluim's user avatar
  • 5,245
6 votes

Setting Default Font in Emacs 26.1

Add (set-frame-font "DejaVu Sans Mono-14" nil t) to your init.el file. This would affect all frames (last parameter t). If you're not sure about the font name, you can see a list of all available ...
Jim Balter's user avatar
6 votes

Ligatures with the JetBrains Mono font

You want to do this with composition rules, not with prettify-symbols. Try this instead: (defconst jetbrains-ligature-mode--ligatures '("-->" "//" "/**" "/*&...
rpluim's user avatar
  • 5,245
6 votes

Font and frame configuration in daemon mode

To do its job, this code apparently needs to run once after the first frame has been created. How can I achieve that? The standard hooks for this are listed under (info "(elisp) Standard Hooks&...
Basil's user avatar
  • 12.4k
5 votes
Accepted

How to configure font in terminal mode (none display graphic)?

You can't change the Font from within emacs in terminal mode. If you want to change the font you have to change your terminal font. Assuming linux If you are using the tty, you should change the ...
Joafigue's user avatar
  • 773
5 votes

Align columns in Org mode table with Japanese fonts

This depends on the fonts you are using. And I don't think Elisp has pixel level alignment capability. Org calculate width of string with string-width instead of length. string-width returns 1 for ...
Yasushi Shoji's user avatar
5 votes

Emacs doesn't display color fonts at all

Or you can use Emacs terminal (emacs -nw) on a terminal emulator that support color emoji. Edit: Emacs can be run as GUI or terminal application. To start emacs terminal, open your terminal emulator (...
Anh Quan Nguyen's user avatar
5 votes

Can Emacs provide a wide scrollbar (birds-eye view) of code?

Most of the emacs packages I've seen related to this have thought of it as coming from the sublime Minimap, which seems identical. I've seen people refer to these, but I don't have much experience ...
quodlibetor's user avatar
5 votes

Fixed width font in Latex

From the manual page (auctex) Fontification of math: In order to make math constructs more readable, font-latex displays subscript and superscript parts in a smaller font and raised or lowered ...
Tyler's user avatar
  • 22.3k
5 votes

How do I set up all the fonts in my GUI Emacs

Emacs uses/defines/handles fonts in ways that you might not be used to. Fonts are treated as attributes of Faces (Emacs Manual: Faces). A Face has several attributes (Emacs Manual: Face Attributes), ...
nega's user avatar
  • 3,221
5 votes

How do I get colour emoji to display in Emacs

You need to use a font with support for that. This is what I do: (if (>= emacs-major-version 27) (set-fontset-font t '(#x1f000 . #x1faff) (font-spec :family "Noto Color Emoji&...
pst's user avatar
  • 266
5 votes
Accepted

Emacs on X11 - problem getting italic font

Turns out that Emacs renders fonts on the client rather than the X Server, and the client machine was at fault. apt list '*dejava*' showed that fonts-dejavu-core was installed but fonts-dejavu-extra ...
kbro's user avatar
  • 181
5 votes
Accepted

how does my org mode have different fonts in src block / table and other texts?

The org-table face and org-block face inherit from fixed-pitch so you can set the font for that face with (set-face-attribute 'fixed-pitch nil :font "Sarasa Mono SC Nerd-12") Most faces ...
amitp's user avatar
  • 2,541
4 votes
Accepted

Changing default font for GUI in bbatsov's prelude

I found the answer here. Instead of set-default-font, I needed the following: (setq default-frame-alist '((font . "Source Code Pro-12")))
Galder Zamarreño's user avatar
4 votes
Accepted

Can I take vector (SVG) screenshots of Emacs?

It's possible in Cairo builds, which are now the default on GNU/Linux! (x-export-frames FRAMES TYPE) Return image data of FRAMES in TYPE format. FRAMES should be nil (the selected frame), a frame, or ...
Clément's user avatar
  • 3,985

Only top scored, non community-wiki answers of a minimum length are eligible