Running Emacs 27.2 on Windows 10.
My Org mode table is misaligned when I use (add-hook 'org-mode-hook 'variable-pitch-mode)
(see the code below). Yes, my fonts are applied but the table is misaligned. If I delete the (add-hook 'org-mode-hook 'variable-pitch-mode)
my table is well aligned but my font is gone. Therefore, I was wondering if there is a way to keep my font but keep my table aligned? Does my problem come from the font I used (Fira Code Retina
)? I tried adding a hook removing the variable-pitch-mode
for orgtbl-mode-hook
but it did not work. I am quite new using Emacs; I am planning to use it for Latex and some coding.
(custom-theme-set-faces
'user
'(variable-pitch ((t (:family "Fira Code Retina" :height 180 :weight thin))))
'(fixed-pitch ((t ( :family "Fira Code Retina" :height 160)))))
(add-hook 'org-mode-hook 'variable-pitch-mode)
Answer: I solved it: I completely forgot the next line.
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
Now everything works.
answer my own question
. Look at the beginning when i wrote the question, the optionanswer my own question
was available but i did not took it into account. therefore, how can i set it answered?