Skip to content

Instantly share code, notes, and snippets.

@soulawaker
Last active March 29, 2024 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulawaker/c8c0f9a75118ef01354f36fa9d579bfc to your computer and use it in GitHub Desktop.
Save soulawaker/c8c0f9a75118ef01354f36fa9d579bfc to your computer and use it in GitHub Desktop.
한글 and english font adjustment for org table, line spacing and line wrapping.
;; 한글 and english font adjustment for org table, line spacing and line wrapping.
;; I'm using this in spacemacs.
(with-eval-after-load 'org
;; org-table 한글:English proportion 1:2
;; Because font rescale apply entire emacs, choose another english font for org-table
;; Replace your favorite monospaced english font and adjust its height if needed
(set-face-attribute 'org-table nil :family "Roboto Mono" :height 105) ;; Apply a specific font on org-table only
(setq face-font-rescale-alist
'(("Roboto Mono" . 0.78571) ;; Find good ratio
("D2Coding ligature" . 1.1))) ;; Replace your favorite Monospaced 한글 font and find good ratio
(defun soulawaker|line-spacing ()
(interactive)
(setq line-spacing 0.2)) ;; May want to adjust
(add-hook 'org-mode-hook 'soulawaker|line-spacing)
(setq org-startup-truncated nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment