While trying to use elisp code to get ligatures working on a build of emacs-27 branch, I noticed that a few ligatures from the table was freezing emacs.
I think you only need an emacs-27 build --with-harfbuzz
{ | |
"label": "BÉPO Dox", | |
"fingerStart": { | |
"1": 29, | |
"2": 30, | |
"3": 31, | |
"4": 32, | |
"5": 66, | |
"6": 75, | |
"7": 35, |
;;; ligature-bug-light.el --- Reproduce an autocomposition bug -*- lexical-binding: t; -*- | |
;;; Commentary: | |
;; | |
;; Reproducer for the composition table bug | |
;; | |
;;;; Method | |
;; | |
;; Evaluate the file | |
;; Expected : "=> testing overlays" is displayed at some point and disappear | |
;; Actual : inifinite looping, trying to "shape unibyte text", |
#!/usr/bin/env python3 | |
from typing import NewType | |
Atom = NewType("Atom", float) | |
Seconds = NewType("Seconds", float) | |
# Network parameters that affect the formula | |
# Target bonded ratio of ATOMs | |
TARGET_BONDED_RATIO = 0.67 |
#include <stdio.h> | |
#include <curses.h> | |
#include <ncurses.h> | |
#include <locale.h> | |
#include <wchar.h> | |
int main() | |
{ | |
setlocale(LC_CTYPE, ""); initscr(); raw(); noecho(); keypad(stdscr, TRUE); | |
wint_t c; |
;;; colortrans.el --- simple conversion tool between truecolor and xterm | |
;; -*- coding: utf-8; lexical-binding: t; -*- | |
;; Copyright © 2019, by Gerry Agbobada | |
;; Author: Gerry Agbobada ( [email protected] ) | |
;; Version: 0.0.1 | |
;; Created: 09 May 2019 | |
;; Keywords: color |
#!/usr/bin/env python3 | |
""" | |
Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
The legacy version uses naive euclidean distance in rgb space, | |
the non-legacy version uses naive euclidean distance in hsv space, manually |
augroup SwapfileManagement " From a tpope snippet. | |
autocmd! | |
" The trick is that resetting 'swapfile' deletes the swapfile. | |
" The if is most likely for the cases when dir is nuked while editing | |
autocmd CursorHold,BufWritePost,BufReadPost,BufLeave * | |
\ if isdirectory(expand("<amatch>:h")) | | |
\ let &swapfile = &modified | endif | |
augroup END |