[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Localized org-mode
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Localized org-mode |
Date: |
Wed, 09 May 2018 10:19:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
ST <address@hidden> writes:
> So how do you solve this problem now for English ":PROPERTIES:"?
Simple. Org does not replace anything arbitrarily. This is less
error-prone.
> Anyway if somebody runs into it he could have at least to options:
>
> 1. write local .emacs.d/.org-de-vocabulary which will override the
> default one (or parts of it) with a synonym, like:
> PROPERTIES -> ATTRIBUTEN
> or
> PROPERTIES -> ORG_EIGENSCHAFTEN
> and then you can replace blindly before parsing.
Again, I'm not particularly fond of having conditional syntax like this.
> I don't know lisp :(
You may want to look at `org-display-custom-time'.
Basically, you search for the regexp "^[ \t]*:\\(PROPERTIES\\):", and
use `put-text-property' to change the text between (match-beginning 1)
and (match-end 1), e.g.,
(defun my-properties-translate ()
(org-with-point-at 1
(while (re-search-forward "^[ \t]*:\\(PROPERTIES\\):" nil t)
(put-text-property (match-beginning 1) (match-end 1) 'display
"ATTRIBUTEN"))))
You need to add this function to, e.g. `org-mode-hook'. Of course this
is really basic and can be improved.
Regards,
--
Nicolas Goaziou 0x80A93738
- [O] Localized org-mode, ST, 2018/05/08
- Re: [O] Localized org-mode, Nicolas Goaziou, 2018/05/08
- Re: [O] Localized org-mode, ST, 2018/05/08
- Re: [O] Localized org-mode, Nicolas Goaziou, 2018/05/08
- Re: [O] Localized org-mode, ST, 2018/05/09
- Re: [O] Localized org-mode,
Nicolas Goaziou <=
- Re: [O] Localized org-mode, Diego Zamboni, 2018/05/09
- Re: [O] Localized org-mode, Kaushal Modi, 2018/05/09
- Re: [O] Localized org-mode, Jean-Christophe Helary, 2018/05/09
- Re: [O] Localized org-mode, Nicolas Goaziou, 2018/05/09
- Re: [O] Localized org-mode, Jean-Christophe Helary, 2018/05/09
- Re: [O] Localized org-mode, Diego Zamboni, 2018/05/09
- Re: [O] Localized org-mode, Jean-Christophe Helary, 2018/05/09
- Re: [O] Localized org-mode, Kaushal Modi, 2018/05/09
- Re: [O] Localized org-mode, Göktuğ Kayaalp, 2018/05/11
- Re: [O] Localized org-mode, Jean-Christophe Helary, 2018/05/11