From 7af34a7b20887805008807f2b954c0d4e4c39f69 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 2 Aug 2017 10:02:03 +0200 Subject: [PATCH] fix bindings for orgtbl --- .emacs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.emacs b/.emacs index 8cd3183..e989c8c 100644 --- a/.emacs +++ b/.emacs @@ -3555,15 +3555,15 @@ intended to be #'> to support reverse sorting." (sit-for 0.2 t) (copy-rectangle-as-kill (org-table-col-beginning) (org-table-col-end))) -;; bindings only required with org mode, the'll work in orgtbl mode -;; tables as well -(eval-after-load "org" - '(progn - (add-hook 'org-mode-hook - (lambda () - (local-set-key (kbd "C-c o") 'org-table-copy-col) - (local-set-key (kbd "C-c t") 'tvd-copy-org-table-cell) - )))) +(with-eval-after-load "org" + (add-hook 'org-mode-hook + (lambda () + (local-set-key (kbd "C-c o") 'org-table-copy-col) + (local-set-key (kbd "C-c t") 'tvd-copy-org-table-cell)))) + +(with-eval-after-load 'orgtbl + (define-key orgtbl-mode-map (kbd "C-c o") 'org-table-copy-col) + (define-key orgtbl-mode-map (kbd "C-c t") 'tvd-copy-org-table-cell)) ;; integers, reals, positives, set via custom (setq org-table-number-regexp "^[-+]?\\([0-9]*\\.[0-9]+\\|[0-9]+\\.?[0-9]*\\)$")