;
;(defun org-load-default-extensions ()
; "Load all extensions listed in `org-default-extensions'."
-; (mapc (lambda (ext)
+; (mapc (lambda (ext)
; (condition-case nil (require ext)
; (error (message "Problems while trying to load feature `%s'" ext))))
; org-default-extensions))
(const :tag "Timestamps" date)))
(defgroup org-link-store nil
- "Options concerning storing links in Org-mode"
+ "Options concerning storing links in Org-mode."
:tag "Org Store Link"
:group 'org-link)
:type 'boolean)
(defgroup org-link-follow nil
- "Options concerning following links in Org-mode"
+ "Options concerning following links in Org-mode."
:tag "Org Follow Link"
:group 'org-link)
An optional sixth element specifies the contexts in which the user can
select the template. This element can be either a list of major modes
or a function. `org-remember' will first check whether the function
-returns `t' or if we are in any of the listed major mode, and select
+returns `t' or if we are in any of the listed major modes, and select
the template accordingly.
The template specifies the structure of the remember buffer. It should have
These are two values, the first applies when first creating a time stamp.
The second applies when changing it with the commands `S-up' and `S-down'.
When changing the time stamp, this means that it will change in steps
-of N minues, as given by the second value.
+of N minutes, as given by the second value.
When a setting is 0 or 1, insert the time unmodified. Useful rounding
numbers should be factors of 60, so for example 5, 10, 15.
(const org-agenda-files)
(list
(const :format "" quote)
- (repeat
+ (repeat
(file))))
(list :tag "Sorting strategy"
(const org-agenda-sorting-strategy)
(list :tag "Stuck projects"
(const :format "" stuck)
(const :tag "" :format "" "")
- ,org-agenda-custom-commands-local-options)
+ ,org-agenda-custom-commands-local-options)
(list :tag "Tags search"
(const :format "" tags)
(string :tag "Match")
(sexp :tag "face")))))
(defgroup org-latex nil
- "Options for embedding LaTeX code into Org-mode"
+ "Options for embedding LaTeX code into Org-mode."
:tag "Org LaTeX"
:group 'org)
;; If no template at this point, add the default templates:
(pre-selected-templates1
(if (not (delq nil pre-selected-templates))
- (mapcar (lambda(x) (if (not (nth 5 x)) x))
+ (mapcar (lambda(x) (if (not (nth 5 x)) x))
org-remember-templates)
pre-selected-templates))
;; Then unconditionnally add template for any contexts
(pre-selected-templates2
- (append (mapcar (lambda(x) (if (eq (nth 5 x) t) x))
+ (append (mapcar (lambda(x) (if (eq (nth 5 x) t) x))
org-remember-templates)
(delq nil pre-selected-templates1)))
(templates (mapcar (lambda (x)
(error "Dynamic block not terminated"))
(setq params
(append params
- (list :content (buffer-substring
+ (list :content (buffer-substring
begdel (match-beginning 0)))))
(delete-region begdel (match-beginning 0))
(goto-char begdel)
(while (< (time-to-days time) (time-to-days (current-time)))
(when (= (incf nshift) nshiftmax)
(or (y-or-n-p (message "%d repeater intervals were not enough to shift date past today. Continue? " nshift))
- (error "Abort")))
+ (error "Abort")))
(org-timestamp-change n (cdr (assoc what whata)))
(sit-for .0001) ;; so we can watch the date shifting
(org-at-timestamp-p t)
cache)))))
(defun org-columns-new (&optional prop title width op fmt &rest rest)
- "Insert a new column, to the leeft o the current column."
+ "Insert a new column, to the left of the current column."
(interactive)
(let ((editp (and prop (assoc prop org-columns-current-fmt-compiled)))
cell)
(setq ng 6 new (car (rassoc (+ n (cdr (assoc (match-string 6 s) idx))) idx))))
((org-pos-in-match-range pos 5)
(setq ng 5 new (format "%d" (max 1 (+ n (string-to-number (match-string 5 s)))))))
-
+
((org-pos-in-match-range pos 9)
(setq ng 9 new (car (rassoc (+ n (cdr (assoc (match-string 9 s) idx))) idx))))
((org-pos-in-match-range pos 8)
(setq ng 8 new (format "%d" (max 0 (+ n (string-to-number (match-string 8 s))))))))
-
+
(when ng
(setq s (concat
(substring s 0 (match-beginning ng))
(>= (org-end-of-subtree t t) (region-end))))))
;; The following two are dynamically scoped into other
;; routines below.
- (org-current-export-dir
+ (org-current-export-dir
(or pub-dir (org-export-directory :html opt-plist)))
(org-current-export-file buffer-file-name)
(level 0) (line "") (origline "") txt todo
(if (looking-at "\\([ \t]*\\)\\(\\S-\\)")
(replace-match "\\1- \\2")))
(beginning-of-line 2))))))
-
+
(defun org-toggle-region-headings (beg end)
"Convert all lines in region to list items.
If the first line is already an item, convert all list items in the region
(if (looking-at "\\([ \t]*\\)\\(\\S-\\)")
(replace-match rpl)))
(beginning-of-line 2)))))))
-
+
(defun org-meta-return (&optional arg)
"Insert a new heading or wrap a region in a table.
Calls `org-insert-heading' or `org-table-wrap-region', depending on context.
(defun org-back-over-empty-lines ()
"Move backwards over witespace, to the beginning of the first empty line.
-Returns the number o empty lines passed."
+Returns the number of empty lines passed."
(let ((pos (point)))
(skip-chars-backward " \t\n\r")
(beginning-of-line 2)
(defun org-find-base-buffer-visiting (file)
"Like `find-buffer-visiting' but alway return the base buffer and
-not an indirect buffer"
+not an indirect buffer."
(let ((buf (find-buffer-visiting file)))
(if buf
(or (buffer-base-buffer buf) buf)