From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Emacs Org mode <emacs-orgmode@gnu.org>
Subject: Displaying links in tables in fixed-width font
Date: Wed, 18 Sep 2013 13:46:16 +0200 [thread overview]
Message-ID: <m2ob7qjqt3.fsf@polytechnique.org> (raw)
Hello,
I'm using a proportional font for my text modes (including org-mode),
with a little hack to make sure that code and tables are displayed in a
fixed font.
--8<---------------cut here---------------start------------->8---
;; from http://yoo2080.wordpress.com/2013/05/30/monospace-font-in-tables-and-source-code-blocks-in-org-mode-proportional-font-in-other-parts/
(defun my-adjoin-to-list-or-symbol (element list-or-symbol)
(let ((list (if (not (listp list-or-symbol))
(list list-or-symbol)
list-or-symbol)))
(require 'cl-lib)
(cl-adjoin element list)))
(mapc
(lambda (face)
(set-face-attribute
face nil
:inherit
(my-adjoin-to-list-or-symbol
'fixed-pitch
(face-attribute face :inherit))))
(list 'org-code 'org-block 'org-table 'org-block-background 'org-date))
--8<---------------cut here---------------end--------------->8---
It works great with one exception: links in tables are displayed using a
proportional font, which breaks the alignment of columns. Is there a way
to display links in table in a fixed font (and keep them proportional in
other places)? Or is it only possible to always display them in a fixed
font?
Thanks,
Alan
reply other threads:[~2013-09-18 11:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ob7qjqt3.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.