Mercurial > emacs
comparison lisp/textmodes/org.el @ 64078:ebf5ec3a071e
(org-file-apps-defaults-gnu): Renamed from org-file-apps-defaults-linux.
(org-default-apps): Don't test system-type for `linux'.
(org-file-apps): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 04 Jul 2005 14:24:04 +0000 |
parents | dc2198941327 |
children | d5372215b17d |
comparison
equal
deleted
inserted
replaced
64077:f823765b0fab | 64078:ebf5ec3a071e |
---|---|
997 "Non-nil means, ask for confirmation before executing shell links. | 997 "Non-nil means, ask for confirmation before executing shell links. |
998 The default is true, to keep new users from shooting into their own foot." | 998 The default is true, to keep new users from shooting into their own foot." |
999 :group 'org-link | 999 :group 'org-link |
1000 :type 'boolean) | 1000 :type 'boolean) |
1001 | 1001 |
1002 (defconst org-file-apps-defaults-linux | 1002 (defconst org-file-apps-defaults-gnu |
1003 '((t . emacs) | 1003 '((t . emacs) |
1004 ("jpg" . "xv %s") | 1004 ("jpg" . "xv %s") |
1005 ("gif" . "xv %s") | 1005 ("gif" . "xv %s") |
1006 ("ppm" . "xv %s") | 1006 ("ppm" . "xv %s") |
1007 ("pgm" . "xv %s") | 1007 ("pgm" . "xv %s") |
1021 ("ppt" . "soffice %s") | 1021 ("ppt" . "soffice %s") |
1022 ("pps" . "soffice %s") | 1022 ("pps" . "soffice %s") |
1023 ("html" . "netscape -remote openURL(%s,new-window)") | 1023 ("html" . "netscape -remote openURL(%s,new-window)") |
1024 ("htm" . "netscape -remote openURL(%s,new-window)") | 1024 ("htm" . "netscape -remote openURL(%s,new-window)") |
1025 ("xs" . "soffice %s")) | 1025 ("xs" . "soffice %s")) |
1026 "Default file applications on a UNIX/LINUX system. | 1026 "Default file applications on a GNU-like system. |
1027 See `org-file-apps'.") | 1027 See `org-file-apps'.") |
1028 | 1028 |
1029 (defconst org-file-apps-defaults-macosx | 1029 (defconst org-file-apps-defaults-macosx |
1030 '((t . "open %s") | 1030 '((t . "open %s") |
1031 ("ps" . "gv %s") | 1031 ("ps" . "gv %s") |
1065 sexp A Lisp form which will be evaluated. The file path will | 1065 sexp A Lisp form which will be evaluated. The file path will |
1066 be available in the Lisp variable `file'. | 1066 be available in the Lisp variable `file'. |
1067 For more examples, see the system specific constants | 1067 For more examples, see the system specific constants |
1068 `org-file-apps-defaults-macosx' | 1068 `org-file-apps-defaults-macosx' |
1069 `org-file-apps-defaults-windowsnt' | 1069 `org-file-apps-defaults-windowsnt' |
1070 `org-file-apps-defaults-linux'." | 1070 `org-file-apps-defaults-gnu'." |
1071 :group 'org-link | 1071 :group 'org-link |
1072 :type '(repeat | 1072 :type '(repeat |
1073 (cons (string :tag "Extension") | 1073 (cons (string :tag "Extension") |
1074 (choice :value "" | 1074 (choice :value "" |
1075 (const :tag "Visit with Emacs" 'emacs) | 1075 (const :tag "Visit with Emacs" 'emacs) |
5386 (cond | 5386 (cond |
5387 ((eq system-type 'darwin) | 5387 ((eq system-type 'darwin) |
5388 org-file-apps-defaults-macosx) | 5388 org-file-apps-defaults-macosx) |
5389 ((eq system-type 'windows-nt) | 5389 ((eq system-type 'windows-nt) |
5390 org-file-apps-defaults-windowsnt) | 5390 org-file-apps-defaults-windowsnt) |
5391 ((eq system-type 'linux) | 5391 (t org-file-apps-defaults-gnu))) |
5392 org-file-apps-defaults-linux) | |
5393 (t org-file-apps-defaults-linux))) | |
5394 | 5392 |
5395 (defun org-expand-file-name (path) | 5393 (defun org-expand-file-name (path) |
5396 "Replace special path abbreviations and expand the file name." | 5394 "Replace special path abbreviations and expand the file name." |
5397 (expand-file-name path)) | 5395 (expand-file-name path)) |
5398 | 5396 |
9046 (define-key org-mode-map (org-key 'S-up) 'org-shiftup) | 9044 (define-key org-mode-map (org-key 'S-up) 'org-shiftup) |
9047 (define-key org-mode-map (org-key 'S-down) 'org-shiftdown) | 9045 (define-key org-mode-map (org-key 'S-down) 'org-shiftdown) |
9048 (define-key org-mode-map (org-key 'S-left) 'org-timestamp-down-day) | 9046 (define-key org-mode-map (org-key 'S-left) 'org-timestamp-down-day) |
9049 (define-key org-mode-map (org-key 'S-right) 'org-timestamp-up-day) | 9047 (define-key org-mode-map (org-key 'S-right) 'org-timestamp-up-day) |
9050 (define-key org-mode-map "\C-c-" 'org-table-insert-hline) | 9048 (define-key org-mode-map "\C-c-" 'org-table-insert-hline) |
9051 ;; The following line is e.g. necessary for German keyboards under Suse Linux | 9049 ;; The following line is necessary for German keyboards under Suse GNU/Linux |
9052 (unless org-xemacs-p | 9050 (unless org-xemacs-p |
9053 (define-key org-mode-map [S-iso-lefttab] 'org-shifttab)) | 9051 (define-key org-mode-map [S-iso-lefttab] 'org-shifttab)) |
9054 (define-key org-mode-map [(shift tab)] 'org-shifttab) | 9052 (define-key org-mode-map [(shift tab)] 'org-shifttab) |
9055 (define-key org-mode-map "\C-c\C-c" 'org-ctrl-c-ctrl-c) | 9053 (define-key org-mode-map "\C-c\C-c" 'org-ctrl-c-ctrl-c) |
9056 (define-key org-mode-map "\C-m" 'org-return) | 9054 (define-key org-mode-map "\C-m" 'org-return) |