From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mAoIAMQw/15KXAAA0tVLHw (envelope-from ) for ; Fri, 03 Jul 2020 13:21:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cHNxN8Mw/15UTAAAB5/wlQ (envelope-from ) for ; Fri, 03 Jul 2020 13:21:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4B799940655 for ; Fri, 3 Jul 2020 13:21:07 +0000 (UTC) Received: from localhost ([::1]:56520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrLcm-0000fo-Mc for larch@yhetil.org; Fri, 03 Jul 2020 09:21:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrLai-0006N9-0O for emacs-orgmode@gnu.org; Fri, 03 Jul 2020 09:18:56 -0400 Received: from mta.vmaly.com ([94.242.65.182]:52930) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrLaf-00009l-7c for emacs-orgmode@gnu.org; Fri, 03 Jul 2020 09:18:55 -0400 Subject: Re: Q: placement of initialization for org-time-stamp-formats To: emacs-orgmode@gnu.org References: From: hj-orgmode-1@hj.proberto.com Message-ID: Date: Fri, 3 Jul 2020 15:18:40 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-ZW Received-SPF: none client-ip=94.242.65.182; envelope-from=hj-orgmode-1@hj.proberto.com; helo=mta.vmaly.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/03 09:18:43 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: flF8X/vHNOnv  Hello again.  After a lot of searching and trying, I finally figured one thing that seems to work: ( I am no lisp programmer, so I don't know what negative side effects might this have) ; I've added into dotspacemacs/user-config section inside .spacemacs :  (add-hook 'org-load-hook           (lambda ()             (setq org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>")) ))  Does that look like this should have no undesirable side effects?   Thanks!     H.J. On 7/1/20 2:19 AM, hj-orgmode-1@hj.proberto.com wrote: > >  Hi, > >  1. Org-Mode rocks!! > >  2. I need to have, besides hours and minutes, also seconds and time > zone in timestamps. I also need to be able to edit the timestamps down > to seconds. If I set ( inside .spacemacs  in (custom-set-variables) ) : > > '(org-display-custom-times t) > '(org-time-stamp-custom-formats (quote ("<%Y-%m-%d %a>" . "<%Y-%m-%d > %a %H:%M:%S %Z>"))) > >    then I get non-editable timestamps. But if I don't set these, and I > only manually set org-time-stamp-formats after I open an org-mode > file, I get exactly what I need => editable timestamps with seconds > and timezone > > Question: Into which initialization file (and which location in that > file) do I place the assignment for org-time-stamp-formats so I don't > have to manually set the following every time after emacs startup? > > (setq org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a > %H:%M:%S %Z>")) > > >   Thanks! > >     H.J. > > >  3. Environment : recent (less than 2 months old) installation of > spacemacs > > Emacs  : GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ > Version 3.22.30) >  of 2019-05-11 > Package: Org mode version 9.3.6 (9.3.6-75-gb614ed-elpaplus @ > /home/user/.emacs.d/elpa/org-plus-contrib-20200525/) > > current state: > ============== > (setq >  org-src-mode-hook '(org-src-babel-configure-edit-buffer > org-src-mode-configure-edit-buffer) >  org-link-shell-confirm-function 'yes-or-no-p >  org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images) >  org-metadown-hook '(org-babel-pop-to-session-maybe) >  org-clock-out-hook '(org-clock-remove-empty-clock-drawer) >  org-time-stamp-custom-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a > %H:%M:%S %Z>") >  org-log-note-clock-out t >  org-imenu-depth 8 >  org-agenda-files '("~/git/jtodo/notes.org" "~/git/jtodo/jtodo.org" > "~/git/tyra165/todo.org" "~/git/jtodo/skola.org") >  org-mode-hook '(#[0 "\301\211^P\207" [imenu-create-index-function > org-imenu-get-tree] 2] >                  #[0 "\300\301\302\303\304$\207" [add-hook > change-major-mode-hook org-show-all append local] 5] >                  #[0 "\300\301\302\303\304$\207" [add-hook > change-major-mode-hook org-babel-show-result-all append local] 5] >                  org-babel-result-hide-spec org-babel-hide-all-hashes > toc-org-enable org-download-enable org-bullets-mode >                  spacemacs//org-babel-do-load-languages > spacemacs/add-org-surrounds evil-org-mode org-eldoc-load) >  org-archive-hook '(org-attach-archive-delete-maybe) >  org-agenda-restore-windows-after-quit t >  org-confirm-elisp-link-function 'yes-or-no-p >  org-startup-with-inline-images t >  org-agenda-before-write-hook '(org-agenda-add-entry-text) >  org-metaup-hook '(org-babel-load-in-session-maybe) >  org-bibtex-headline-format-function #[257 "\300^A\236A\207" [:title] > 3 "\n\n(fn ENTRY)"] >  org-babel-pre-tangle-hook '(save-buffer) >  org-tab-first-hook '(org-babel-hide-result-toggle-maybe > org-babel-header-arg-expand) >  org-log-done 'time >  org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . > php) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) >                       ("beamer" . latex) ("calc" . fundamental) ("cpp" > . c++) ("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp) >                       ("ocaml" . tuareg) ("screen" . shell-script) > ("shell" . sh) ("sqlite" . sql)) >  org-catch-invisible-edits 'error >  org-occur-hook '(org-first-headline-recenter) >  org-cycle-hook '(org-cycle-hide-archived-subtrees > org-cycle-show-empty-lines org-optimize-window-after-visibility-change) >  org-todo-keywords '((sequence "TODO(t!)" "NEXT(n!)" "DOINGNOW(d!)" > "BLOCKED(b@)" "TODELEGATE(g@)" "DELEGATED(D!)" "FOLLOWUP(f!)" > "TICKLE(T!)" "|" >                       "CANCELLED(c@)" "DONE(F@)") >                      ) >  org-speed-command-hook '(org-speed-command-activate > org-babel-speed-command-activate) >  org-clock-persist-file "/home/user/.emacs.d/.cache/org-clock-save.el" >  org-id-locations-file "/home/user/.emacs.d/.cache/.org-id-locations" >  org-confirm-shell-link-function 'yes-or-no-p >  org-link-parameters '(("attachment" :follow org-attach-open-link > :export org-attach-export-link :complete org-attach-complete-link) >                        ("id" :follow org-id-open) ("eww" :follow eww > :store org-eww-store-link) >                        ("rmail" :follow org-rmail-open :store > org-rmail-store-link) ("mhe" :follow org-mhe-open :store > org-mhe-store-link) >                        ("irc" :follow org-irc-visit :store > org-irc-store-link :export org-irc-export) >                        ("info" :follow org-info-open :export > org-info-export :store org-info-store-link) >                        ("gnus" :follow org-gnus-open :store > org-gnus-store-link) >                        ("docview" :follow org-docview-open :export > org-docview-export :store org-docview-store-link) >                        ("bibtex" :follow org-bibtex-open :store > org-bibtex-store-link) >                        ("bbdb" :follow org-bbdb-open :export > org-bbdb-export :complete org-bbdb-complete-link :store > org-bbdb-store-link) >                        ("w3m" :store org-w3m-store-link) >                        ("orgit-rev" :store orgit-rev-store :follow > orgit-rev-open :export orgit-rev-export :complete > orgit-rev-complete-link) >                        ("orgit-log" :store orgit-log-store :follow > orgit-log-open :export orgit-log-export :complete > orgit-log-complete-link) >                        ("orgit" :store orgit-status-store :follow > orgit-status-open :export orgit-status-export :complete >                         orgit-status-complete-link) >                        ("file+sys") ("file+emacs") ("shell" :follow > org-link--open-shell) >                        ("news" :follow #[257 "\301\300\302^CQ!\207" > ["news" browse-url ":"] 5 "\n\n(fn URL)"]) >                        ("mailto" :follow #[257 "\301\300\302^CQ!\207" > ["mailto" browse-url ":"] 5 "\n\n(fn URL)"]) >                        ("https" :follow #[257 "\301\300\302^CQ!\207" > ["https" browse-url ":"] 5 "\n\n(fn URL)"]) >                        ("http" :follow #[257 "\301\300\302^CQ!\207" > ["http" browse-url ":"] 5 "\n\n(fn URL)"]) >                        ("ftp" :follow #[257 "\301\300\302^CQ!\207" > ["ftp" browse-url ":"] 5 "\n\n(fn URL)"]) ("help" :follow > org-link--open-help) >                        ("file" :complete org-link-complete-file) > ("elisp" :follow org-link--open-elisp) ("doi" :follow > org-link--open-doi)) >  org-present-mode-hook '(spacemacs//org-present-start) >  org-link-elisp-confirm-function 'yes-or-no-p >  org-image-actual-width nil >  org-present-mode-quit-hook '(spacemacs//org-present-end) >  org-default-notes-file "notes.org" >  ) > >