mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 04:20:57 +01:00
fix bindings for orgtbl
This commit is contained in:
18
.emacs
18
.emacs
@@ -3555,15 +3555,15 @@ intended to be #'> to support reverse sorting."
|
|||||||
(sit-for 0.2 t)
|
(sit-for 0.2 t)
|
||||||
(copy-rectangle-as-kill (org-table-col-beginning) (org-table-col-end)))
|
(copy-rectangle-as-kill (org-table-col-beginning) (org-table-col-end)))
|
||||||
|
|
||||||
;; bindings only required with org mode, the'll work in orgtbl mode
|
(with-eval-after-load "org"
|
||||||
;; tables as well
|
(add-hook 'org-mode-hook
|
||||||
(eval-after-load "org"
|
(lambda ()
|
||||||
'(progn
|
(local-set-key (kbd "C-c o") 'org-table-copy-col)
|
||||||
(add-hook 'org-mode-hook
|
(local-set-key (kbd "C-c t") 'tvd-copy-org-table-cell))))
|
||||||
(lambda ()
|
|
||||||
(local-set-key (kbd "C-c o") 'org-table-copy-col)
|
(with-eval-after-load 'orgtbl
|
||||||
(local-set-key (kbd "C-c t") 'tvd-copy-org-table-cell)
|
(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
|
;; integers, reals, positives, set via custom
|
||||||
(setq org-table-number-regexp "^[-+]?\\([0-9]*\\.[0-9]+\\|[0-9]+\\.?[0-9]*\\)$")
|
(setq org-table-number-regexp "^[-+]?\\([0-9]*\\.[0-9]+\\|[0-9]+\\.?[0-9]*\\)$")
|
||||||
|
|||||||
Reference in New Issue
Block a user