11

How can I avoid displaying "=>" when a field is clipped in org-table? Those arrows dominate some narrow cells, and I can view the full field in a tool-tip window anyway, so I'd like to get rid of them.

stacko
  • 1,577
  • 1
  • 11
  • 18
  • I only see `=>` when I explicitly set a column width in my org tables. Are you setting the column width? – Melioratus Mar 10 '16 at 03:43
  • @Melioratus, yes, and I'd like to get rid of them even when I limit the column width. – stacko Mar 10 '16 at 03:45
  • The latest version of Org Mode (tested in version 9.5) has done away with the arrow and replaced it with an ellipsis that occupies only one character. – nispio Apr 05 '22 at 05:50

2 Answers2

1

The answer to the following stackexchange question pretty much leads the way to how to fulfill your requirement.

Copy the org-table-align command (from org-table.el -> M-x find-library RET org-table) to one of your init files. Then delete the following line:

(add-text-properties
  (if (>= (string-width (substring x (1- f2) f2)) 2) (1- f2)
    (- f2 2))
  f2
  (list 'display org-narrow-column-arrow)
  x)
CantrianBear
  • 359
  • 1
  • 10
0

You can set org-narrow-column-arrow to "" with (setq org-narrow-column-arrow "").

Yasushi Shoji
  • 2,151
  • 15
  • 35
  • 4
    That doesn't quite work as the string-width of 2 for `"=>"` is hard-coded in `org-table-align`. If you set that var to `""`, the table alignment will be messed up and what's worse is that if `abcdef` were earlier being displayed as `a=>` (truncation to 3 chars), it will now just show `a`, causing more confusion. Also that var is not intended to be changed by user as it is a `defconst`, not a `defcustom`. It would be useful to request this feature by emailing emacs-orgmode@gnu.org. – Kaushal Modi Mar 09 '16 at 15:44