• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/emacs-92/emacs/lisp/textmodes/

Lines Matching +defs:conf +defs:windows +defs:mode

2 ;; Carstens outline-mode for keeping track of everything.
30 ;; Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
33 ;; Org-mode develops organizational tasks around NOTES files that contain
34 ;; information about projects as plain text. Org-mode is implemented on
35 ;; top of outline-mode, which makes it possible to keep the content of
38 ;; table editor. Org-mode supports ToDo items, deadlines, time stamps,
43 ;; printing and sharing of notes, an Org-mode file can be exported as a
56 ;; The documentation of Org-mode can be found in the TeXInfo file. The
58 ;; Org-mode, you can read the same text online as HTML. There is also an
90 (message "Org-mode version %s" org-version))
110 "Options concerning startup of Org-mode."
115 "Non-nil means, entering Org-mode will switch to OVERVIEW.
129 "Non-nil means, entering Org-mode will set `truncate-lines'.
146 (defcustom org-insert-mode-line-in-empty-file nil
147 "Non-nil means insert the first line setting Org-mode in empty files.
148 When the function `org-mode' is called interactively in an empty file, this
149 normally means that the file name does not automatically trigger Org-mode.
150 To ensure that the file will always be in Org-mode in the future, a
151 line enforcing Org-mode will be inserted into the buffer, if this option
158 Org-mode used S-<cursor movement> for changing timestamps and priorities.
159 S-<cursor movement> is also used for example by `CUA-mode' to select text.
160 If you want to use Org-mode together with `CUA-mode', Org-mode needs to use
162 keys both in Org-mode and in the Org-agenda buffer.
173 This option is only relevant at load-time of Org-mode, and must be set
185 "Keys for which Org-mode and other modes compete.
196 "The ellipsis to use in the Org-mode outline.
198 and just in Org-mode (which will then use its own display table).
199 Changing this requires executing `M-x org-mode' in a buffer to become
206 "The display table for org-mode, in case `org-ellipsis' is non-nil.")
209 "Keywords in Org-mode."
263 "Options concerning the general structure of Org-mode files."
274 Org-mode often shows locations in an org-mode file which might have
309 Org-mode often shows locations in an org-mode file which might have
337 Org-mode often shows locations in an org-mode file which might have
367 "Options concerning visibility cycling in Org-mode."
411 "Options concerning structure editing in Org-mode."
420 Changing it requires restart of `font-lock-mode' to become effective
464 "Options concerning sparse trees in Org-mode."
494 "Options concerning plain lists in Org-mode."
536 "Options concerning archiving in Org-mode."
579 contributing to the Org-mode Agenda.
622 "Options concerning tables in Org-mode."
632 - Automatic overwrite mode in front of whitespace in table fields.
639 `delete-char', and `backward-delete-char' in Org-mode buffers, with a
640 slight (in fact: unnoticeable) speed impact for normal typing. Org-mode is
644 If you would like to use the optimized version in Org-mode, but the
645 un-optimized version in OrgTbl-mode, see the variable `orgtbl-optimized'.
658 "Non-nil means, use the optimized table editor version for `orgtbl-mode'.
661 in a way to minimize disturbing the table structure (i.e. in overwrite mode
666 Org-mode. See the variable `org-enable-table-editor' for details. Changing
672 '((latex-mode "% BEGIN RECEIVE ORGTBL %n
678 (texinfo-mode "@c BEGIN RECEIVE ORGTBL %n
684 (html-mode "<!-- BEGIN RECEIVE ORGTBL %n -->
695 (list (symbol :tag "Major mode")
699 "Settings for tables in Org-mode."
746 "Bahavior of tables during editing in Org-mode."
782 "Options concerning tables in Org-mode."
794 calc-angle-mode deg
796 calc-symbolic-mode nil
800 "List with Calc mode settings for use in calc-eval for table formulas.
802 Don't remove any of the default settings, just change the values. Org-mode
818 ;; FIXME this is also a variable that makes Org-mode files non-portable
850 "Options concerning links in Org-mode."
863 links in Org-mode buffers can have an optional tag after a double colon, e.g.
877 state in new org-mode buffers. The setting can then be toggled on a
900 "Types of links that should be activated in Org-mode files.
923 "Options concerning storing links in Org-mode"
975 Org-mode file (offering completion for all stored links). When this
991 "Options concerning following links in Org-mode"
1094 This link would show up in your Org-mode document as \"Google Search\"
1111 This link would show up in your Org-mode document as \"Google Search\"
1164 Org-mode uses system defaults for different file types, but
1252 a first line starting with a star, to act as the org-mode headline.
1312 "Options concerning TODO items in Org-mode."
1317 "Options concerning Progress logging in Org-mode."
1323 \\<org-mode-map>By default, this is '(\"TODO\" \"DONE\"). The last entry in the list is
1338 states. \\<org-mode-map>Possible values are `sequence' and `type'.
1427 "Priorities in Org-mode."
1443 "Options concerning time stamps and deadlines in Org-mode."
1516 "Options concerning tags in Org-mode."
1521 "List of tags allowed in Org-mode files.
1522 When this list is nil, Org-mode will base TAG input on what is already in the
1607 "Options concerning agenda views in Org-mode."
1615 -*- mode: org; org-category: \"ELisp\"
1650 "The key to be installed in `calendar-mode-map' for switching to the agenda.
1658 "Options concerning agenda views in Org-mode."
1848 (defcustom org-agenda-start-with-follow-mode nil
1849 "The initial value of follwo-mode in a newly created agenda window."
1853 (defgroup org-agenda-windows nil
1854 "Options concerning the windows used by the Agenda in Org Mode."
1862 current-window Show agenda in the current window, keeping all other windows.
1865 reorganize-frame Show only two windows on the current frame, the current
1867 See also the variable `org-agenda-restore-windows-after-quit'."
1868 :group 'org-agenda-windows
1875 (defcustom org-agenda-restore-windows-after-quit nil
1882 :group 'org-agenda-windows
1895 :group 'org-agenda-windows
1948 "Options concerning the time grid in the Org-mode Agenda."
1995 "Options concerning sorting in the Org-mode Agenda."
2060 "Options concerning the entry prefix in the Org-mode agenda display."
2163 "Options for embedding LaTeX code into Org-mode"
2191 "General options for exporting Org-mode files."
2197 This path may be relative to the directory where the Org-mode file lives.
2198 The default is to put them into the same directory as the Org-mode file.
2202 Org-mode files lives."
2410 "Options for exporting tables in Org-mode."
2432 In Org-mode tables, all lines before the first horizontal separator
2449 When nil, Org-mode's own HTML generator is used when possible (i.e. if
2452 sub/superscripts can be applied. Org-mode's HTML generator is also
2458 "Options specific for ASCII export of Org-mode files."
2474 Org-mode file."
2479 "Options specific for XML export of Org-mode files."
2484 "Options specific for HTML export of Org-mode files."
2549 When org-mode is exporting an org-mode file to HTML, links to
2551 However, links to other Org-mode files (recognized by the
2553 file, assuming that the linked org-mode file will also be
2597 "The HTML tag used as timestamp delimiter for HTML-helper-mode."
2602 "Options specific for iCalendar export of Org-mode files."
2627 "Font-lock settings for highlighting in Org-mode."
2634 Changing it requires restart of `font-lock-mode' to become effective
2645 Changing it requires restart of `font-lock-mode' to become effective
2752 characters, the face to bbe used by font-lock for highlighting in Org-mode
2769 "Faces in Org-mode."
3109 (defsubst org-mode-p ()
3110 "Check if the current buffer is in Org-mode."
3111 (eq major-mode 'org-mode))
3143 "Variable associated with STARTUP options for org-mode.
3151 (when (org-mode-p)
3293 (defvar outline-mode-menu-heading)
3294 (defvar outline-mode-menu-show)
3295 (defvar outline-mode-menu-hide)
3300 ;; Packages that org-mode interacts with
3319 (defvar calendar-mode-map)
3325 (defvar annotation) ; from remember.el, dynamically scoped in `remember-mode'
3326 (defvar initial) ; from remember.el, dynamically scoped in `remember-mode'
3341 (defvar orgtbl-mode-menu) ; defined when orgtbl mode get initialized
3345 (defvar orgtbl-mode)
3427 "Is `transient-mark-mode' on and the region active?
3433 (and transient-mark-mode mark-active))))
3464 ;;;; Define the Org-mode
3466 (if (and (not (keymapp outline-mode-map)) (featurep 'allout))
3476 (defvar org-mode-map)
3477 (defvar org-mode-hook nil)
3483 (define-derived-mode org-mode outline-mode "Org"
3485 \"Carsten's outline-mode for keeping track of everything.\"
3487 Org-mode develops organizational tasks around a NOTES file which
3488 contains information about projects as plain text. Org-mode is
3489 implemented on top of outline-mode, which is ideal to keep the content
3495 For printing and sharing of notes, an Org-mode file (or a part of it)
3500 \\{org-mode-map}"
3503 ;; Need to do this here because define-derived-mode sets up
3505 ;; we switch another buffer into org-mode.
3507 (when (boundp 'outline-mode-menu-heading)
3509 (easy-menu-remove outline-mode-menu-heading)
3510 (easy-menu-remove outline-mode-menu-show)
3511 (easy-menu-remove outline-mode-menu-hide))
3512 (define-key org-mode-map [menu-bar headings] 'undefined)
3513 (define-key org-mode-map [menu-bar hide] 'undefined)
3514 (define-key org-mode-map [menu-bar show] 'undefined))
3535 (org-set-local 'calc-embedded-open-mode "# ")
3558 (org-add-hook 'isearch-mode-end-hook 'org-isearch-end 'append 'local)
3563 ;; If empty file that did not turn on org-mode automatically, make it to.
3564 (if (and org-insert-mode-line-in-empty-file
3567 (insert " -*- mode: org -*-\n\n"))
3843 "Restart font-lock-mode, to force refontification."
3844 (when (and (boundp 'font-lock-mode) font-lock-mode)
3845 (font-lock-mode -1)
3846 (font-lock-mode 1)))
4001 "Visibility cycling for Org-mode.
4029 (if (and (org-mode-p) org-cycle-include-plain-lists)
4165 (if (org-mode-p) org-cycle-include-plain-lists nil)))
4174 "Switch to overview mode, shoing only top-level headlines.
4276 overview mode. You can dive into the tree in that copy, to find the
4295 "Let the user select a location in the Org-mode buffer BUF.
4301 (delete-other-windows)
4312 (org-mode))
4412 (delete-other-windows)
4421 (delete-other-windows)
4430 (save-excursion (org-mode) (turn-on-font-lock)))
4528 If the region is active in `transient-mark-mode', promote all headings
4539 If the region is active in `transient-mark-mode', demote all headings
4572 If the region is active in `transient-mark-mode', promote all headings
4586 If the region is active in `transient-mark-mode', demote all headings
4644 "Convert an org-mode file with all levels allowed to one with odd levels.
4660 "Convert an org-mode file with only odd levels to one with odd and even levels.
5516 ;; Enforce org-mode for the archive buffer
5517 (if (not (org-mode-p))
5518 ;; Force the mode for future visits.
5519 (let ((org-insert-mode-line-in-empty-file t))
5520 (call-interactively 'org-mode)))
5704 ;; Most of the code is for the tables created with the Org-mode table editor.
5771 If there is already a table at point, convert between Org-mode tables
5777 (if (y-or-n-p "Convert table to Org-mode table? ")
5887 (fundamental-mode)
6075 (when (and orgtbl-mode (not (org-mode-p)))
6831 "Convert from `org-mode' table to table.el and back.
6832 Obviously, this only works within limits. When an Org-mode table is
6835 A table.el table can be converted to an Org-mode table only if it does not
6837 Beware, Org-mode does not test if the table can be successfully converted - it
6842 ;; convert to Org-mode table
6953 (if (and (boundp 'font-lock-mode) font-lock-mode)
6962 (org-mode)
7459 (defsubst org-set-calc-mode (var &optional value)
7461 (setq var (assoc var '(("D" calc-angle-mode deg)
7462 ("R" calc-angle-mode rad)
7464 ("S" calc-symbolic-mode t)))
7498 For details, see the Org-mode manual.
7542 (setq modes (org-set-calc-mode 'calc-internal-prec n))
7543 (setq modes (org-set-calc-mode
7556 (setq modes (org-set-calc-mode (match-string 0 fmt)))
7955 ;; Keep global-font-lock-mode from turning on font-lock-mode
7956 (let ((font-lock-global-modes '(not fundamental-mode)))
7957 (fundamental-mode))
7958 (org-set-local 'font-lock-global-modes (list 'not major-mode))
8332 ;;; The orgtbl minor mode
8334 ;; Define a minor mode which can be used in other modes in order to
8335 ;; integrate the org-mode table editor.
8337 ;; This is really a hack, because the org-mode table editor uses several
8338 ;; keys which normally belong to the major mode, for example the TAB and
8339 ;; RET keys. Here is how it works: The minor mode defines all the keys
8345 ;; keymap (minor modes, major mode, global), and executes that command.
8350 ;; likewise the binding for RET can be return or \C-m. Orgtbl-mode
8356 ;; AUCTeX binds the double quote to `Tex-insert-quote'. With orgtbl-mode
8360 (defvar orgtbl-mode nil
8361 "Variable controlling `orgtbl-mode', a minor mode enabling the `org-mode'
8363 (make-variable-buffer-local 'orgtbl-mode)
8365 (defvar orgtbl-mode-map (make-keymap)
8366 "Keymap for `orgtbl-mode'.")
8370 "Unconditionally turn on `orgtbl-mode'."
8371 (orgtbl-mode 1))
8374 "Local variable used by `orgtbl-mode'")
8382 "Extra font-lock-keywords to be added when orgtbl-mode is active.")
8385 (defun orgtbl-mode (&optional arg)
8386 "The `org-mode' table editor as a minor mode for use in other modes."
8388 (if (org-mode-p)
8390 ;; by accident in org-mode.
8391 (message "Orgtbl-mode is not useful in org-mode, command ignored")
8392 (setq orgtbl-mode
8393 (if arg (> (prefix-numeric-value arg) 0) (not orgtbl-mode)))
8394 (if orgtbl-mode
8397 ;; Make sure we are first in minor-mode-map-alist
8398 (let ((c (assq 'orgtbl-mode minor-mode-map-alist)))
8399 (and c (setq minor-mode-map-alist
8400 (cons c (delq c minor-mode-map-alist)))))
8415 (easy-menu-add orgtbl-mode-menu)
8416 (run-hooks 'orgtbl-mode-hook))
8424 (easy-menu-remove orgtbl-mode-menu)
8425 (force-mode-line-update 'all))))
8440 ;; Install it as a minor mode.
8441 (put 'orgtbl-mode :included t)
8442 (put 'orgtbl-mode :menu-tag "Org Table Mode")
8443 (add-minor-mode 'orgtbl-mode " OrgTbl" orgtbl-mode-map)
8446 "Create a function for binding in the table minor mode.
8462 (list 'let '(orgtbl-mode)
8513 (define-key orgtbl-mode-map key cmd))
8516 (define-key orgtbl-mode-map [(return)]
8518 (define-key orgtbl-mode-map "\C-m"
8521 (define-key orgtbl-mode-map [(tab)]
8523 (define-key orgtbl-mode-map "\C-i"
8526 (define-key orgtbl-mode-map [(shift tab)]
8530 (define-key orgtbl-mode-map "\M-\C-m"
8533 (define-key orgtbl-mode-map [(meta return)]
8537 (define-key orgtbl-mode-map "\C-c\C-c" 'orgtbl-ctrl-c-ctrl-c)
8541 (org-remap orgtbl-mode-map
8545 (define-key orgtbl-mode-map "|" 'org-force-self-insert))
8546 (easy-menu-define orgtbl-mode-menu orgtbl-mode-map "OrgTbl menu"
8579 (assq major-mode orgtbl-radio-table-templates)]
8629 (t (let (orgtbl-mode)
8633 "Justification and field motion for `orgtbl-mode'."
8640 "Justification and field motion for `orgtbl-mode'."
8646 "Like `self-insert-command', use overwrite-mode for whitespace in tables.
8670 (let (orgtbl-mode)
8779 "Insert a radio table template appropriate for this major mode."
8781 (let* ((e (assq major-mode orgtbl-radio-table-templates))
8784 (unless e (error "No radio table setup defined for %s" major-mode))
8804 "Convert the orgtbl-mode TABLE to some other format.
8896 "Convert the orgtbl-mode TABLE to LaTeX.
8929 "Convert the orgtbl-mode TABLE to LaTeX.
8958 "Convert the orgtbl-mode TABLE to TeXInfo.
8976 under org-mode.
9027 "\\<org-mode-map>Store an org-link to the current location.
9038 ((eq major-mode 'bbdb-mode)
9045 ((eq major-mode 'Info-mode)
9054 ((eq major-mode 'calendar-mode)
9064 ((or (eq major-mode 'vm-summary-mode)
9065 (eq major-mode 'vm-presentation-mode))
9066 (and (eq major-mode 'vm-presentation-mode) (vm-summarize))
9086 ((eq major-mode 'wl-summary-mode)
9107 ((or (equal major-mode 'mh-folder-mode)
9108 (equal major-mode 'mh-show-mode))
9119 ((eq major-mode 'rmail-mode)
9135 ((eq major-mode 'gnus-group-mode)
9150 ((memq major-mode '(gnus-summary-mode gnus-article-mode))
9151 (and (eq major-mode 'gnus-article-mode) (gnus-article-show-summary))
9171 ((eq major-mode 'w3-mode)
9176 ((eq major-mode 'w3m-mode)
9187 ((eq major-mode 'image-mode)
9193 ((eq major-mode 'dired-mode)
9201 ((and buffer-file-name (org-mode-p))
9786 handle this file type, for example by checking the major-mode or
9799 be used for this link when it gets inserted into an Org-mode
9808 handle this search, for example by checking the major-mode or the
9827 regular expression. In org-mode files, this will create an `org-occur'
9829 If the current buffer is in `dired-mode', grep will be used to search
9851 ((org-mode-p)
9853 ;;((eq major-mode 'dired-mode)
9903 (and (org-mode-p) (org-show-context 'link-search))))
9960 "Mark ring for positions before jumps in Org-mode.")
9986 Org-mode commands jumping to a different position in the current file,
9987 or to another Org-mode file, automatically push the old position
10146 ;;; mh-e integration based on planner-mode
10152 (if (equal major-mode 'mh-folder-mode)
10164 (if (equal major-mode 'mh-show-mode)
10189 (if (equal major-mode 'mh-folder-mode)
10198 (if (equal major-mode 'mh-folder-mode)
10204 "Return a header of the message in folder mode. This will create a
10213 (if (equal major-mode 'mh-folder-mode)
10218 (if (equal major-mode 'mh-folder-mode)
10258 (when (eq major-mode 'bibtex-mode)
10282 (when (eq major-mode 'bibtex-mode)
10329 (old-mode major-mode)
10369 (and (org-mode-p) (eq old-mode 'org-mode)
10379 ((eq system-type 'windows-nt)
10409 If you are using Org-mode files as target for data storage with
10411 conventions in Org-mode. This function returns such a link."
10423 "Initialize *remember* buffer with template, invoke `org-mode'.
10424 This function should be placed into `remember-mode-hook' and in fact requires
10448 (v-i initial) ; defined in `remember-mode'
10484 ;; Turn on org-mode in the remember buffer, set local variables
10485 (org-mode)
10511 (org-mode)
10785 (when (org-mode-p)
11184 (delete-other-windows)
11190 (let ((org-inhibit-startup t)) (org-mode))
11755 (delete-other-windows)
11825 (delete-other-windows)
12032 (map (copy-keymap calendar-mode-map))
12353 "Parse the standard Org-mode time string.
12927 ;;; Define the Org-agenda-mode
12929 (defvar org-agenda-mode-map (make-sparse-keymap)
12930 "Keymap for `org-agenda-mode'.")
12933 (defvar org-agenda-follow-mode nil)
12936 (defvar org-agenda-mode-hook nil)
12940 (defun org-agenda-mode ()
12941 "Mode for time-sorted view on action items in Org-mode files.
12945 \\{org-agenda-mode-map}"
12950 (setq major-mode 'org-agenda-mode)
12951 ;; Keep global-font-lock-mode from turning on font-lock-mode
12952 (org-set-local 'font-lock-global-modes (list 'not major-mode))
12953 (setq mode-name "Org-Agenda")
12954 (use-local-map org-agenda-mode-map)
12966 (setq org-agenda-follow-mode org-agenda-start-with-follow-mode
12980 (org-agenda-set-mode-name)
12982 (if (fboundp 'run-mode-hooks) 'run-mode-hooks 'run-hooks)
12983 (list 'org-agenda-mode-hook)))
12986 org-agenda-mode-map global-map)
12987 (define-key org-agenda-mode-map "\C-i" 'org-agenda-goto)
12988 (define-key org-agenda-mode-map [(tab)] 'org-agenda-goto)
12989 (define-key org-agenda-mode-map "\C-m" 'org-agenda-switch-to)
12990 (define-key org-agenda-mode-map "\C-k" 'org-agenda-kill)
12991 (define-key org-agenda-mode-map "\C-c$" 'org-agenda-archive)
12992 (define-key org-agenda-mode-map "\C-c\C-x\C-s" 'org-agenda-archive)
12993 (define-key org-agenda-mode-map "$" 'org-agenda-archive)
12994 (define-key org-agenda-mode-map "\C-c\C-o" 'org-agenda-open-link)
12995 (define-key org-agenda-mode-map " " 'org-agenda-show)
12996 (define-key org-agenda-mode-map "\C-c\C-t" 'org-agenda-todo)
12997 (define-key org-agenda-mode-map "\C-c\C-xb" 'org-agenda-tree-to-indirect-buffer)
12998 (define-key org-agenda-mode-map "b" 'org-agenda-tree-to-indirect-buffer)
12999 (define-key org-agenda-mode-map "o" 'delete-other-windows)
13000 (define-key org-agenda-mode-map "L" 'org-agenda-recenter)
13001 (define-key org-agenda-mode-map "t" 'org-agenda-todo)
13002 (define-key org-agenda-mode-map "a" 'org-agenda-toggle-archive-tag)
13003 (define-key org-agenda-mode-map ":" 'org-agenda-set-tags)
13004 (define-key org-agenda-mode-map "." 'org-agenda-goto-today)
13005 (define-key org-agenda-mode-map "d" 'org-agenda-day-view)
13006 (define-key org-agenda-mode-map "w" 'org-agenda-week-view)
13007 (define-key org-agenda-mode-map (org-key 'S-right) 'org-agenda-date-later)
13008 (define-key org-agenda-mode-map (org-key 'S-left) 'org-agenda-date-earlier)
13009 (define-key org-agenda-mode-map [?\C-c ?\C-x (right)] 'org-agenda-date-later)
13010 (define-key org-agenda-mode-map [?\C-c ?\C-x (left)] 'org-agenda-date-earlier)
13012 (define-key org-agenda-mode-map ">" 'org-agenda-date-prompt)
13013 (define-key org-agenda-mode-map "\C-c\C-s" 'org-agenda-schedule)
13014 (define-key org-agenda-mode-map "\C-c\C-d" 'org-agenda-deadline)
13016 (while l (define-key org-agenda-mode-map
13019 (define-key org-agenda-mode-map "f" 'org-agenda-follow-mode)
13020 (define-key org-agenda-mode-map "l" 'org-agenda-log-mode)
13021 (define-key org-agenda-mode-map "D" 'org-agenda-toggle-diary)
13022 (define-key org-agenda-mode-map "g" 'org-agenda-toggle-time-grid)
13023 (define-key org-agenda-mode-map "r" 'org-agenda-redo)
13024 (define-key org-agenda-mode-map "q" 'org-agenda-quit)
13025 (define-key org-agenda-mode-map "x" 'org-agenda-exit)
13026 (define-key org-agenda-mode-map "s" 'org-save-all-org-buffers)
13027 (define-key org-agenda-mode-map "P" 'org-agenda-show-priority)
13028 (define-key org-agenda-mode-map "T" 'org-agenda-show-tags)
13029 (define-key org-agenda-mode-map "n" 'next-line)
13030 (define-key org-agenda-mode-map "p" 'previous-line)
13031 (define-key org-agenda-mode-map "\C-n" 'org-agenda-next-date-line)
13032 (define-key org-agenda-mode-map "\C-p" 'org-agenda-previous-date-line)
13033 (define-key org-agenda-mode-map "," 'org-agenda-priority)
13034 (define-key org-agenda-mode-map "\C-c," 'org-agenda-priority)
13035 (define-key org-agenda-mode-map "i" 'org-agenda-diary-entry)
13036 (define-key org-agenda-mode-map "c" 'org-agenda-goto-calendar)
13038 '(define-key calendar-mode-map org-calendar-to-agenda-key
13040 (define-key org-agenda-mode-map "C" 'org-agenda-convert-date)
13041 (define-key org-agenda-mode-map "m" 'org-agenda-phases-of-moon)
13042 (define-key org-agenda-mode-map "M" 'org-agenda-phases-of-moon)
13043 (define-key org-agenda-mode-map "S" 'org-agenda-sunrise-sunset)
13044 (define-key org-agenda-mode-map "h" 'org-agenda-holidays)
13045 (define-key org-agenda-mode-map "H" 'org-agenda-holidays)
13046 (define-key org-agenda-mode-map "+" 'org-agenda-priority-up)
13047 (define-key org-agenda-mode-map "I" 'org-agenda-clock-in)
13048 (define-key org-agenda-mode-map "O" 'org-agenda-clock-out)
13049 (define-key org-agenda-mode-map "X" 'org-agenda-clock-cancel)
13050 (define-key org-agenda-mode-map "-" 'org-agenda-priority-down)
13051 (define-key org-agenda-mode-map (org-key 'S-up) 'org-agenda-priority-up)
13052 (define-key org-agenda-mode-map (org-key 'S-down) 'org-agenda-priority-down)
13053 (define-key org-agenda-mode-map [?\C-c ?\C-x (up)] 'org-agenda-priority-up)
13054 (define-key org-agenda-mode-map [?\C-c ?\C-x (down)] 'org-agenda-priority-down)
13055 (define-key org-agenda-mode-map [(right)] 'org-agenda-later)
13056 (define-key org-agenda-mode-map [(left)] 'org-agenda-earlier)
13057 (define-key org-agenda-mode-map "\C-c\C-x\C-c" 'org-export-icalendar-combine-agenda-files)
13058 (defvar org-agenda-keymap (copy-keymap org-agenda-mode-map)
13059 "Local keymap for agenda entries from Org-mode.")
13067 (easy-menu-define org-agenda-menu org-agenda-mode-map "Agenda menu"
13074 ["Follow Mode" org-agenda-follow-mode
13075 :style toggle :selected org-agenda-follow-mode :active t]
13117 ["Show Logbook entries" org-agenda-log-mode
13124 ["Save all Org-mode Buffers" org-save-all-org-buffers t]
13239 If the current buffer is in Org-mode and visiting a file, you can also
13246 (restrict-ok (and bfn (org-mode-p)))
13257 (delete-other-windows)
13343 (org-check-for-org-mode)
13346 (org-check-for-org-mode)
13351 (org-check-for-org-mode)
13365 (error "This is not an Org-mode file"))
13408 "Run an agenda command in batch mode, send result to STDOUT.
13424 (defun org-check-for-org-mode ()
13425 "Make sure current buffer is in org-mode. Error if not."
13426 (or (org-mode-p)
13427 (error "Cannot execute org-mode agenda command on buffer in %s."
13428 major-mode)))
13479 (let ((org-mode-hook nil) (default-major-mode 'fundamental-mode))
13580 (defvar org-pre-agenda-window-conf nil)
13596 ((not (setq org-pre-agenda-window-conf (current-window-configuration))))
13604 (delete-other-windows)
13608 (org-agenda-mode))
13688 Org-mode keeps a list of these markers and resets them when they are
14125 (unless (org-mode-p)
14126 (error "Agenda file %s is not in `org-mode'" file))
14256 the dummy entry installed by `org-mode' to ensure non-empty diary for each
14271 (if (re-search-forward "^Org-mode dummy\n?" nil t)
14288 "Add text properties to string, allowing org-mode to act on it."
14303 (add-to-diary-list original-date "Org-mode dummy" "")
14305 (add-to-diary-list original-date "Org-mode dummy" "" nil)))))
14387 (unless (org-mode-p)
14388 (error "Agenda file %s is not in `org-mode'" file))
15098 (and org-agenda-restore-windows-after-quit
15100 org-pre-agenda-window-conf
15101 (set-window-configuration org-pre-agenda-window-conf)))
15105 Also kill all Org-mode buffers which have been loaded by `org-agenda'.
15106 Org-mode buffers visited directly by the user will not be touched."
15113 "Save all Org-mode buffers without user confirmation."
15115 (message "Saving all Org-mode buffers...")
15116 (save-some-buffers t 'org-mode-p)
15117 (message "Saving all Org-mode buffers... done"))
15192 (org-agenda-set-mode-name)
15209 (org-agenda-set-mode-name)
15254 (defun org-agenda-follow-mode ()
15255 "Toggle follow mode in an agenda buffer."
15257 (setq org-agenda-follow-mode (not org-agenda-follow-mode))
15258 (org-agenda-set-mode-name)
15259 (message "Follow mode is %s"
15260 (if org-agenda-follow-mode "on" "off")))
15262 (defun org-agenda-log-mode ()
15263 "Toggle log mode in an agenda buffer."
15267 (org-agenda-set-mode-name)
15269 (message "Log mode is %s"
15278 (org-agenda-set-mode-name)
15288 (org-agenda-set-mode-name)
15292 (defun org-agenda-set-mode-name ()
15293 "Set the mode name to indicate all the small mode settings."
15294 (setq mode-name
15298 (if org-agenda-follow-mode " Follow" "")
15302 (force-mode-line-update))
15307 (if (and org-agenda-follow-mode
15329 "Go to the Org-mode file which contains the item at point."
15338 (when (org-mode-p)
15348 (or (eq major-mode 'org-agenda-mode) (error "Not in agenda"))
15353 dbeg dend (n 0) conf)
15358 (if (org-mode-p)
15365 (setq conf (or (eq t org-agenda-confirm-kill)
15368 (and conf
15380 (or (eq major-mode 'org-agenda-mode) (error "Not in agenda"))
15387 (if (org-mode-p)
15393 (error "Archiving works only in Org-mode files"))))))
15431 (defun org-agenda-switch-to (&optional delete-other-windows)
15432 "Go to the Org-mode file which contains the item at point."
15439 (and delete-other-windows (delete-other-windows))
15442 (when (org-mode-p)
15449 "Go to the Org-mode file which contains the item at the mouse click."
15455 "Display the Org-mode file which contains the item at point."
15462 "Display the Org-mode file which contains the item at point and recenter."
15470 "Display the Org-mode file which contains the item at the mouse click."
15486 Org-mode buffer.
15506 "Cycle TODO state of line at point, also in Org-mode file.
15508 the same tree node, and the headline of the tree node in the Org-mode file."
15600 "Increase the priority of line at point, also in Org-mode file."
15605 "Decrease the priority of line at point, also in Org-mode file."
15610 "Set the priority of line at point, also in Org-mode file.
15612 the same tree node, and the headline of the tree node in the Org-mode file."
15954 "Compute the Org-mode agenda for the calendar date displayed at the cursor.
15955 This is a command that has to be installed in `calendar-mode-map'."
15992 (defvar org-cdlatex-mode-map (make-sparse-keymap)
15993 "Keymap for the minor `org-cdlatex-mode'.")
15995 (define-key org-cdlatex-mode-map "_" 'org-cdlatex-underscore-caret)
15996 (define-key org-cdlatex-mode-map "^" 'org-cdlatex-underscore-caret)
15997 (define-key org-cdlatex-mode-map "`" 'cdlatex-math-symbol)
15998 (define-key org-cdlatex-mode-map "'" 'org-cdlatex-math-modify)
15999 (define-key org-cdlatex-mode-map "\C-c{" 'cdlatex-environment)
16004 (define-minor-mode org-cdlatex-mode
16005 "Toggle the minor `org-cdlatex-mode'.
16006 This mode supports entering LaTeX environment and math in LaTeX fragments
16007 in Org-mode.
16008 \\{org-cdlatex-mode-map}"
16010 (when org-cdlatex-mode (require 'cdlatex))
16014 "Always return t in org-mode buffers.
16018 \\[org-cdlatex-mode-map]"
16022 ((not (org-mode-p)) ad-do-it)
16025 texmathp-why '("cdlatex-math-symbol in org-mode" . 0)))
16030 texmathp-why '("Org-mode embedded math" . 0))
16034 "Unconditionally turn on `org-cdlatex-mode'."
16035 (org-cdlatex-mode 1))
16084 It makes sense to do so if `org-cdlatex-mode' is active and if the cursor is
16088 (when org-cdlatex-mode
16105 (let (org-cdlatex-mode)
16114 (let (org-cdlatex-mode)
16450 (delete-other-windows)
16773 (set-buffer (get-buffer-create " org-mode-tmp"))
16776 (let ((org-inhibit-startup t)) (org-mode))
16888 (kill-buffer " org-mode-tmp")
17008 (fundamental-mode)
17099 (normal-mode)
17185 org-mode file will not be removed but presented to you so that you can
17226 (org-mode)
17382 org-mode's default settings, but still inferior to file-local settings."
17472 (fundamental-mode)
17496 <meta name=\"generator\" content=\"Org-mode\"/>
17880 (normal-mode)
18014 This has the advantage that Org-mode's HTML conversions can be used.
18056 But it has the disadvantage, that Org-mode's HTML conversions cannot be used."
18278 The iCalendar file will be located in the same directory as the Org-mode
18286 Each iCalendar file will be located in the same directory as the Org-mode
18350 "Print iCalendar entries for the current Org-mode file to `standard-output'.
18434 PRODID:-//%s//Emacs with Org-mode//EN
18548 ;; - Bindings in Org-mode map are currently
18551 ;; e (?) useful from outline-mode
18552 ;; i k @ expendable from outline-mode
18556 (define-key org-mode-map "\C-c\C-x" (make-sparse-keymap))
18559 (define-key org-mode-map "\C-i" 'org-cycle)
18560 (define-key org-mode-map [(tab)] 'org-cycle)
18561 (define-key org-mode-map [(control tab)] 'org-force-cycle-archived)
18562 (define-key org-mode-map [(meta tab)] 'org-complete)
18563 (define-key org-mode-map "\M-\t" 'org-complete)
18564 (define-key org-mode-map "\M-\C-i" 'org-complete)
18567 (define-key org-mode-map [S-iso-lefttab] 'org-shifttab))
18568 (define-key org-mode-map [(shift tab)] 'org-shifttab)
18570 (define-key org-mode-map (org-key 'S-return) 'org-table-copy-down)
18571 (define-key org-mode-map [(meta shift return)] 'org-insert-todo-heading)
18572 (define-key org-mode-map [(meta return)] 'org-meta-return)
18575 (define-key org-mode-map [(meta left)] 'org-metaleft)
18576 (define-key org-mode-map [(meta right)] 'org-metaright)
18577 (define-key org-mode-map [(meta up)] 'org-metaup)
18578 (define-key org-mode-map [(meta down)] 'org-metadown)
18580 (define-key org-mode-map [(meta shift left)] 'org-shiftmetaleft)
18581 (define-key org-mode-map [(meta shift right)] 'org-shiftmetaright)
18582 (define-key org-mode-map [(meta shift up)] 'org-shiftmetaup)
18583 (define-key org-mode-map [(meta shift down)] 'org-shiftmetadown)
18585 (define-key org-mode-map (org-key 'S-up) 'org-shiftup)
18586 (define-key org-mode-map (org-key 'S-down) 'org-shiftdown)
18587 (define-key org-mode-map (org-key 'S-left) 'org-shiftleft)
18588 (define-key org-mode-map (org-key 'S-right) 'org-shiftright)
18596 (define-key org-mode-map "\C-c\C-xc" 'org-table-copy-down)
18597 (define-key org-mode-map "\C-c\C-xM" 'org-insert-todo-heading)
18598 (define-key org-mode-map "\C-c\C-xm" 'org-meta-return)
18599 (define-key org-mode-map [?\e (return)] 'org-meta-return)
18600 (define-key org-mode-map [?\e (left)] 'org-metaleft)
18601 (define-key org-mode-map "\C-c\C-xl" 'org-metaleft)
18602 (define-key org-mode-map [?\e (right)] 'org-metaright)
18603 (define-key org-mode-map "\C-c\C-xr" 'org-metaright)
18604 (define-key org-mode-map [?\e (up)] 'org-metaup)
18605 (define-key org-mode-map "\C-c\C-xu" 'org-metaup)
18606 (define-key org-mode-map [?\e (down)] 'org-metadown)
18607 (define-key org-mode-map "\C-c\C-xd" 'org-metadown)
18608 (define-key org-mode-map "\C-c\C-xL" 'org-shiftmetaleft)
18609 (define-key org-mode-map "\C-c\C-xR" 'org-shiftmetaright)
18610 (define-key org-mode-map "\C-c\C-xU" 'org-shiftmetaup)
18611 (define-key org-mode-map "\C-c\C-xD" 'org-shiftmetadown)
18612 (define-key org-mode-map [?\C-c ?\C-x (up)] 'org-shiftup)
18613 (define-key org-mode-map [?\C-c ?\C-x (down)] 'org-shiftdown)
18614 (define-key org-mode-map [?\C-c ?\C-x (left)] 'org-shiftleft)
18615 (define-key org-mode-map [?\C-c ?\C-x (right)] 'org-shiftright))
18619 (define-key org-mode-map "\C-c\C-a" 'show-all) ; in case allout messed up.
18620 (define-key org-mode-map "\C-c\C-r" 'org-reveal)
18621 (define-key org-mode-map "\C-xns" 'org-narrow-to-subtree)
18622 (define-key org-mode-map "\C-c$" 'org-archive-subtree)
18623 (define-key org-mode-map "\C-c\C-x\C-s" 'org-advertized-archive-subtree)
18624 (define-key org-mode-map "\C-c\C-x\C-a" 'org-toggle-archive-tag)
18625 (define-key org-mode-map "\C-c\C-xb" 'org-tree-to-indirect-buffer)
18626 (define-key org-mode-map "\C-c\C-j" 'org-goto)
18627 (define-key org-mode-map "\C-c\C-t" 'org-todo)
18628 (define-key org-mode-map "\C-c\C-s" 'org-schedule)
18629 (define-key org-mode-map "\C-c\C-d" 'org-deadline)
18630 (define-key org-mode-map "\C-c;" 'org-toggle-comment)
18631 (define-key org-mode-map "\C-c\C-v" 'org-show-todo-tree)
18632 (define-key org-mode-map "\C-c\C-w" 'org-check-deadlines)
18633 (define-key org-mode-map "\C-c/" 'org-occur) ; Minor-mode reserved
18634 (define-key org-mode-map "\C-c\\" 'org-tags-sparse-tree) ; Minor-mode res.
18635 (define-key org-mode-map "\C-c\C-m" 'org-insert-heading)
18636 (define-key org-mode-map "\M-\C-m" 'org-insert-heading)
18637 (define-key org-mode-map "\C-c\C-x\C-n" 'org-next-link)
18638 (define-key org-mode-map "\C-c\C-x\C-p" 'org-previous-link)
18639 (define-key org-mode-map "\C-c\C-l" 'org-insert-link)
18640 (define-key org-mode-map "\C-c\C-o" 'org-open-at-point)
18641 (define-key org-mode-map "\C-c%" 'org-mark-ring-push)
18642 (define-key org-mode-map "\C-c&" 'org-mark-ring-goto)
18643 (define-key org-mode-map "\C-c\C-z" 'org-time-stamp) ; Alternative binding
18644 (define-key org-mode-map "\C-c." 'org-time-stamp) ; Minor-mode reserved
18645 (define-key org-mode-map "\C-c!" 'org-time-stamp-inactive) ; Minor-mode r.
18646 (define-key org-mode-map "\C-c," 'org-priority) ; Minor-mode reserved
18647 (define-key org-mode-map "\C-c\C-y" 'org-evaluate-time-range)
18648 (define-key org-mode-map "\C-c>" 'org-goto-calendar)
18649 (define-key org-mode-map "\C-c<" 'org-date-from-calendar)
18650 (define-key org-mode-map [(control ?,)] 'org-cycle-agenda-files)
18651 (define-key org-mode-map [(control ?\')] 'org-cycle-agenda-files)
18652 (define-key org-mode-map "\C-c[" 'org-agenda-file-to-front)
18653 (define-key org-mode-map "\C-c]" 'org-remove-file)
18654 (define-key org-mode-map "\C-c-" 'org-table-insert-hline)
18655 (define-key org-mode-map "\C-c^" 'org-sort)
18656 (define-key org-mode-map "\C-c\C-c" 'org-ctrl-c-ctrl-c)
18657 (define-key org-mode-map "\C-c#" 'org-update-checkbox-count)
18658 (define-key org-mode-map "\C-m" 'org-return)
18659 (define-key org-mode-map "\C-c?" 'org-table-field-info)
18660 (define-key org-mode-map "\C-c " 'org-table-blank-field)
18661 (define-key org-mode-map "\C-c+" 'org-table-sum)
18662 (define-key org-mode-map "\C-c=" 'org-table-eval-formula)
18663 (define-key org-mode-map "\C-c'" 'org-table-edit-formulas)
18664 (define-key org-mode-map "\C-c`" 'org-table-edit-field)
18665 (define-key org-mode-map "\C-c|" 'org-table-create-or-convert-from-region)
18666 (define-key org-mode-map "\C-c*" 'org-table-recalculate)
18667 (define-key org-mode-map [(control ?#)] 'org-table-rotate-recalc-marks)
18668 (define-key org-mode-map "\C-c~" 'org-table-create-with-table.el)
18669 (define-key org-mode-map "\C-c\C-q" 'org-table-wrap-region)
18670 (define-key org-mode-map "\C-c}" 'org-table-toggle-coordinate-overlays)
18671 (define-key org-mode-map "\C-c{" 'org-table-toggle-formula-debugger)
18672 (define-key org-mode-map "\C-c\C-e" 'org-export)
18673 (define-key org-mode-map "\C-c:" 'org-toggle-fixed-width-section)
18675 (define-key org-mode-map "\C-c\C-x\C-k" 'org-cut-special)
18676 (define-key org-mode-map "\C-c\C-x\C-w" 'org-cut-special)
18677 (define-key org-mode-map "\C-c\C-x\M-w" 'org-copy-special)
18678 (define-key org-mode-map "\C-c\C-x\C-y" 'org-paste-special)
18680 (define-key org-mode-map "\C-c\C-x\C-t" 'org-toggle-time-stamp-overlays)
18681 (define-key org-mode-map "\C-c\C-x\C-i" 'org-clock-in)
18682 (define-key org-mode-map "\C-c\C-x\C-o" 'org-clock-out)
18683 (define-key org-mode-map "\C-c\C-x\C-x" 'org-clock-cancel)
18684 (define-key org-mode-map "\C-c\C-x\C-d" 'org-clock-display)
18685 (define-key org-mode-map "\C-c\C-x\C-r" 'org-clock-report)
18686 (define-key org-mode-map "\C-c\C-x\C-u" 'org-dblock-update)
18687 (define-key org-mode-map "\C-c\C-x\C-l" 'org-preview-latex-fragment)
18688 (define-key org-mode-map "\C-c\C-x\C-b" 'org-toggle-checkbox)
18691 (define-key org-mode-map 'button3 'popup-mode-menu))
18696 "Like `self-insert-command', use overwrite-mode for whitespace in tables.
18770 ;; Make `delete-selection-mode' work with org-mode and orgtbl-mode
18776 ;; Make `flyspell-mode' delay after some commands
18799 (org-remap org-mode-map
18803 (define-key org-mode-map "|" 'org-force-self-insert))
19050 (call-interactively 'org-mode-restart))))
19053 (defun org-mode-restart ()
19054 "Restart Org-mode, to scan again for special lines.
19057 (let ((org-inhibit-startup t)) (org-mode))
19058 (message "Org-mode restarted to refresh keyword and special line setup"))
19083 ;; Define the Org-mode menus
19084 (easy-menu-define org-tbl-menu org-mode-map "Tbl menu"
19143 (easy-menu-define org-org-menu org-mode-map "Org menu"
19278 ["Org CDLaTeX mode" org-cdlatex-mode :style toggle
19279 :selected org-cdlatex-mode]
19297 ["Refresh setup" org-mode-restart t]
19310 "Read documentation for Org-mode in the info system.
19321 (if (org-mode-p) (setq bl nil)))
19322 (when (org-mode-p)
19342 "Create a full customization menu for Org-mode, insert it into the menu."
19379 :table in an org-mode table
19618 (table-p (org-table-align) t) ; align org-mode tables
19625 "Return a fill prefix for org-mode files.
19672 (define-key org-mode-map "\C-a" 'org-beginning-of-line)
19815 ;; (Emacs 22 has a special variable, see function `org-mode')
19816 (unless (and (boundp 'isearch-mode-end-hook-quit)
19817 isearch-mode-end-hook-quit)
19841 (and (org-mode-p)