mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
Updated taiwan
This commit is contained in:
parent
bdc912a956
commit
85f3578adf
1 changed files with 4 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
(add-drawer "^http"
|
||||
"WEBSITE")
|
||||
(add-drawer "^English:"
|
||||
"ENGLISH")
|
||||
"ENGLISH_TRANSLATION")
|
||||
(goto-char (line-end-position))
|
||||
(insert "\n:PROPERTIES:")
|
||||
(re-search-forward "goo.gl" nil t)
|
||||
|
|
@ -24,9 +24,10 @@
|
|||
(insert "\n:END:")
|
||||
(widen)))
|
||||
|
||||
(defun my/populate-taiwan-fields (address website maps-url coordinates)
|
||||
(defun my/populate-taiwan-fields (english address website maps-url coordinates)
|
||||
(interactive
|
||||
(list
|
||||
(read-string "English? ")
|
||||
(read-string "Address? ")
|
||||
(read-string "Website? ")
|
||||
(read-string "Google Maps URL? ")
|
||||
|
|
@ -34,6 +35,7 @@
|
|||
(cl-flet ((add-valid (key value)
|
||||
(when (not (string-empty-p value))
|
||||
(org-entry-put (point) key value))))
|
||||
(add-valid "ENGLISH_TRANSLATION" english)
|
||||
(add-valid "ADDRESS" address)
|
||||
(add-valid "COORDINATES" coordinates)
|
||||
(add-valid "WEBSITE" website)
|
||||
|
|
|
|||
Loading…
Reference in a new issue