org-mode

Unable to enter diary entry org-agenda-diary-entry: Wrong type argument: commandp, insert-diary-entry

我的未来我决定 提交于 2020-01-05 04:37:12
问题 I am using emacs 25.3.2 and org-mode 8.2.10. For some reason whenever I try to add a new diary entry in the org-Agenda I get this error message org-agenda-diary-entry: Wrong type argument: commandp, insert-diary-entryInvalid face reference: nil I have tried all types: day weekly, monthly and none worked. If I try to add the entry from emacs calendar it works fine (I end up in the diary file). Relevant entries from my .emacs file are ;; Calendar/diary controls ;; This code has to be at the

what are the influences after cancelling \hypersetup in org-mode?

我怕爱的太早我们不能终老 提交于 2020-01-04 09:01:35
问题 I make pdf in org-mode with my own preamble, but the PDF or tex file generated always appear the information resulting from: (format "\\hypersetup{\n pdfkeywords={%s},\n pdfsubject={%s},\n pdfcreator={%s}}\n" (org-export-latex-fontify-headline keywords) (org-export-latex-fontify-headline description) (concat "Emacs Org-mode version " org-version)) those cods locate in ~/.emacs.d/org-7.8.11/lisp/org-latex.el I cancelled it to prevent the useless information appearing at the first page of its

How can I distinguish scheme dialects in org-babel code blocks?

余生长醉 提交于 2020-01-04 05:24:13
问题 Evaluating this code (C-c C-c): #+begin_src scheme (andmap + '(1 2 3) '(4 5 6)) #+end_src leads to the following babel error: ERROR: Unbound variable: andmap The cause: babel evaluated the code with Guile instead of Racket. How can I tell Babel to execute code using Racket, not Guile? 回答1: http://terohasu.net/blog/2011-09-08-on-racket-support-in-emacs-org-mode.html describes a way: When configuring Emacs to set things up I wasn’t familiar with Babel or any of the solutions for evaluating

Viewing Chinese/Korean/Lunar birthday on org-agenda?

℡╲_俬逩灬. 提交于 2020-01-03 15:35:48
问题 I have a few people around me who use Lunar Calendar instead of Gregorian one, so my current set up: *** Birthdays :PROPERTIES: :CATEGORY: Birthday :END: **** NAME <1980-09-09 Thu +1y> fails to show up at the right time on org-agenda . I know that there is calendar-chinese-date-string function that changes the Gregorian date to a Chinese one, but I don't know how that would work within .org file. Any help? 回答1: If You just want to display important dates on lunar calendar, you can try

How to handle quotes in org-mode?

瘦欲@ 提交于 2020-01-03 07:04:27
问题 How do I handle quotes in org-mode? Similar to the > in stackoverflow. 回答1: The only built-in mechanism I can think of is #+begin_quote blocks, which may be meant for export. I personally either leave > from emails, or use emacs boxes. 回答2: You can use : I've only ever needed to use it when quoting org code itself. Instead, use #+BEGIN_SRC , which gives you the chance to do very neat remote-highlighting of code in HTML output. See the excellent manual for that. 回答3: You can customize the CSS

how can I collapse all entries older than 3 months in my emacs org-mode journal file?

只愿长相守 提交于 2020-01-02 07:23:08
问题 I have a large journal file with date entries like this: [2011-06-23 Thu] some text [2011-06-22 Wed] some more text [... 12MB of text later ...] [2000-01-01 Sat] first entry I would like to be able to configure org-mode so that only the last 3 months are visible, whereas older entries are collapsed, and are only expanded when I need to. Is there a way of setting this up automatically so that every new day makes the 3 month + 1 day old entry be collapsed next time? As it is now, it's

Defining unscheduled todos as stuck projects in Emacs Org-Mode

房东的猫 提交于 2020-01-01 08:46:08
问题 I'm trying to setup the org-stuck-projects variable so that the "stuck projects" agenda will list all headlines which are TODOs (any TODO keyword except DONE) but those which don't have SCHEDULED or DEADLINE attributes set. Currently I get an empty list with this setting for the variable: (setq org-stuck-projects '("TODO" nil nil "SCHEDULED:|DEADLINE:")) I've checked to have some TODO'ed tasks with no scheduled date or deadline. 回答1: Found a solution: '("TODO={.+}/-DONE" nil nil "SCHEDULED:\\

Define org mode macro with line breaks

泄露秘密 提交于 2020-01-01 08:19:10
问题 It is possible to define a macro in an org file as follow: #+MACRO: macroname <here comes the body of the macro> Is it possible to define a macro that contains line breaks? I.e., something like: #+MACRO: macroname line 1 of macro line 2 of macro In particular, this macro will be expanded to line 1 of macro line 2 of macro My motivation is to have a macro that expands to a block of text which contains, for instance, two paragraphs. 回答1: Not only is this possible, it's quite easy to do. You

How to make inline comments in Org-mode?

二次信任 提交于 2020-01-01 07:58:47
问题 In Org-mode there are several ways to make comments. But I do not know of any way to make inline comments. According to the manual regions surrounded by ‘#+BEGIN_COMMENT’ ... ‘#+END_COMMENT’ will not be exported. But this is only true if the said region starts a line. In the following #+TITLE: Test text #+BEGIN_COMMENT comment 1 #+END_COMMENT text text #+BEGIN_COMMENT comment 2 #+END_COMMENT text only comment 2 is treated as a comment. It exports (e.g. C-e A ) as text #+BEGIN_COMMENT comment

Emacs org-mode publishing Agenda

眉间皱痕 提交于 2020-01-01 03:16:06
问题 How do you publish the agenda for org mode? I am currently using htmlize to write just the agenda buffer, but I want it to publish all the related buffers, and link the agenda items to the corresponding locations in the other files. Is there a way to do this? 回答1: You just have to supply a file extension when writing the agenda view. C-x C-w to save the agenda. When it asks you for the location, you just enter a filename that ends with .html For example, I saved my agenda in /tmp/agenda.html