Hot answers tagged

3

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 (iTerm or iTerm2 in MacOS, Mate-Terminal or Gnaome-Terminal in Linux) and run the command emacs -nw in the terminal emulator. When running in terminal mode, the ...


3

Try buffer-face-set, which accepts either a face name like (buffer-face-set "error") or a property list of face attributes and values like (buffer-face-set :weight 'bold :height 150). I think your specific example would be something like (buffer-face-set :font-family "American Typewriter" :height 150). You can M-: and at the "Eval:" prompt enter one of ...


3

You specify a font in XLFD-style, which normaly consits of 14 parts (specifiers between the -). But your font has 15 parts and this is wrong. The problem lies here: SimSun-ExtB. I think this should specify the family (fmly), but the - makes ExtB to be evaluated as weight (wght) and this is wrong. To use this font anyway, you could try to specify this font ...


2

How about this: char-displayable-p is an autoloaded compiled Lisp function in `mule-util.el'. (char-displayable-p CHAR) Return non-nil if we should be able to display CHAR. On a multi-font display, the test is only whether there is an appropriate font from the selected frame's fontset to display CHAR's charset in general. Since ...


2

A glance on org-export--dispatch-ui shows that org-export--dispatch-action is the action right after generating the dispatch buffer. The function org-export--dispatch-action already handles the key-presses for the export options. Therefore you have no other choice than to put the font setting function before org-export--dispatch-action with the help of an ...


2

The following seems working: (seq-filter (lambda (font) (when-let ((info (font-info font))) (string-match-p "spacing=100" (aref info 1)))) (font-family-list)) ;; => ("Andale Mono" "Courier" "Courier New" "GB18030 Bitmap" "Input" "Menlo" "Monaco" "PT Mono" "Source Code Pro" "Apple Braille" "Apple ...


2

In file .XdefHiDPI, add the following line, adapting for your preferred font and size. I use the Hack TTF font at 14 point on a normal-resolution display. emacs*font: Hack-14 See: (info "(emacs) X Resources") and https://sourcefoundry.org/hack/


2

In Emacs the appearance of certain text is controlled using something called "faces". You should learn about faces and how to change them by reading the documentation. To quickly change how something looks you can often put point (aka the cursor) on that thing that you want to change and then type M-x customize-face. That will often offer you the ...


2

Have a look at the emojify package.


2

A Font Foundry, more correctly a Type Foundry is the font manufacturer. Think Adobe, Bitstream, Monotype, etc. A Font Family is a collection of fonts under one name. Think Helvetica, Courier, Times New Roman. etc. A Font would be “Adobe’s Helvetica, semi-condensed bold italic in 12 point”. This definition comes from movable type. The evolution of ...


1

It seems this issue has affected many users over the years, I implemented this workaround: (defun fc-list () "Genera una lista de tipografías disponibles usando fc-list" (if (executable-find "fc-list") (split-string (shell-command-to-string "fc-list --format='%{family[0]}\n' | sort | uniq") "\n") (progn (warn "fc-list command is not ...


1

You can do this with set-fontset-font, which allows overriding the builtin selection mechanisms for fonts for specific characters, charsets or scripts. So in your case, something like: (set-fontset-font "fontset-default" 'hebrew (font-spec :family "Dejavu Sans Mono" :size 20)) See Modifying-Fontsets for more info.


1

M-x customize-face default, then set the height attribute to the value you want. There are several other approaches. Here's one involving default-frame-alist: Use M-x customize-option default-frame-alist, providing a full font name for the value of frame-parameter font. For example: this value uses a font height of 16 pixels: "-*-Lucida Console-normal-r-...


1

You can define a new function that minimize the font size and bound it to an unused keybinding. (defun my-text-scale-minimize () (interactive) (text-scale-increase (text-scale-min-amount))) (global-set-key (kbd "C-c -") #'my-text-scale-minimize) If the font size is too small replace (text-scale-min-amount) with a negative integer. To restore the ...


1

I executed the following elisp code and the problem was fixed: (set-fontset-font "fontset-default" 'unicode '("Cambria Math" . "iso10646-1")) But I don't understand why on my old PC emacs is able to display 𝔱𝔢𝔰𝔱 without any configuration at all (emacs -Q). If someone can help me understand why on one PC above code ...


1

The font you are using cannot display those particular characters. Try a different font. (You likely see those boxes for some, but not for all, characters.) Try also, and first, if you haven't already, starting Emacs using emacs -Q (no init file), to eliminate any possible complications coming from your init file.


1

If you have not specified anything, it will be the receiver's settings that matter, and that's as it should be. If you want to read your emails in a fixed width font, you should be able to set that; let others read them as they wish.


1

I set the colors directly on the xterm window using ~/.Xresources, or ~/.Xdefaults (whichever works for your system) according to XTerm*termName: xterm-256color ! This forces 256 colors XTerm*background: black XTerm*foreground: white XTerm*faceName: DejaVu Sans Mono Book ! This is a truetype font XTerm*faceName: Monospace XTerm*faceSize: 10 XTerm*...


1

The "hard to read echo area messages on dark background" is because under ttys, the colors are set by default under the assumption of a light background (and because there's no way for Emacs to query the terminal to know whether the background is dark or not). You can fix this problem by customizing frame-background-mode. It won't make Emacs fully ...


1

Yes, if you have the Symbola font installed, it will make use of it to render emojis:


1

With respect to what you tried using set-face-attribute: The error message tells you that the first argument needs to be a symbol. At that point you should use C-h f set-face-attribute, which tells you that the first argument needs to be a face. Here's an example of its use. (set-face-attribute 'default nil ':font "American Typewriter" ':height 150) That ...


1

I use it as buffer local by # Local Variables: # eval: (setq buffer-face-mode-face '(:family "American typewriter" :height 150)) # eval: (buffer-face-mode t) # End: Change :height to what you want.


1

See the text-scale-increase function: text-scale-increase is an autoloaded interactive compiled Lisp function in face-remap.el. (text-scale-increase INC) Increase the height of the default face in the current buffer by INC steps. If the new height is other than the default, text-scale-mode is enabled. Each step scales the height of the ...


1

Your question title speaks about the command line. This answer instead talks about setting the font size in Emacs. zoom-frm-in is a command in Emacs-Lisp library zoom-frm.el. It's purpose is to zoom inward interactively. It sounds like you don't want to zoom in interactively but you instead want to start Emacs at the right zoom level - in other words, set ...


1

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), colors, over/under line, strike-through, size, generic font specification, specific font specification, etc. For your purposes I think you want the :font ...


1

Library mouse3.el gives you what you request: a context-dependent right-click popup menu that's configurable. See Mouse3 for a complete description, screenshots, and details. By default such menus are region-related if the region is active, and it is global and click-position-related if not.


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