From de4613ea1a60747c21d0f90d6cbb7ece6b83ca21 Mon Sep 17 00:00:00 2001 From: Ruijie Yu Date: Tue, 11 Apr 2023 01:32:26 +0800 Subject: [PATCH 11/12] * zh_CN/elpa.org: copied from /elpa.org for now --- zh_CN/elpa.org | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 zh_CN/elpa.org diff --git a/zh_CN/elpa.org b/zh_CN/elpa.org new file mode 100644 index 0000000..908136e --- /dev/null +++ b/zh_CN/elpa.org @@ -0,0 +1,71 @@ +#+title: Org Emacs Lisp Package Archive +#+setupfile: setup.org +#+include: "resources/preamble.html" export html + +* Org Emacs Lisp Package Archive (deprecated) + :PROPERTIES: + :CUSTOM_ID: introduction + :END: + +For versions <= 9.5, [[https://orgmode.org][orgmode.org]] hosts Org ELPA archives. + +*Beware that no new Org versions will be released on Org ELPA after +9.5.* + +Add this to your Emacs init file to be able to list the Org mode +archives: + +#+BEGIN_SRC emacs-lisp +(require 'package) +(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t) +#+END_SRC + +Then =M-x list-packages RET= will list both the latest =org= and +=org-plus-contrib= packages. + +- =org= :: Contains the same set of files that are included in GNU + Emacs. + +- =org-plus-contrib= :: Contains these files plus all contribs files, + the ones you used to find in =contrib/= from the [[https://git.sr.ht/~bzg/org-contrib][git repo]]. + +* Installation + :PROPERTIES: + :CUSTOM_ID: installation + :END: + +By default, Emacs loads packages *after* it loads your Emacs init file. + +We recommend intializing packages as /early/ as possible in your Emacs +init file so that your Org configuration will be correctly handled: + +#+BEGIN_SRC emacs-lisp :exports code +;; -*- emacs-lisp -*- +(package-initialize) ;; Initialize & Install Package +;; (setq org-...) ;; Your custom settings +#+END_SRC + +The package initialization should happen *before* you require Org and +set any Org options. + +Also, you may want to set up Package correctly before initializing it: + +#+BEGIN_SRC emacs-lisp :exports code + ;; -*- emacs-lisp -*- + (unless package-archive-contents ;; Refresh the packages descriptions + (package-refresh-contents)) + (setq package-load-list '(all)) ;; List of packages to load + (unless (package-installed-p 'org) ;; Make sure the Org package is + (package-install 'org)) ;; installed, install it if not + (package-initialize) ;; Initialize & Install Package + ;; (setq org-...) ;; Your custom settings +#+END_SRC + +See the [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html][GNU Emacs Package manual]] for details. + +* Questions? + :PROPERTIES: + :CUSTOM_ID: questions + :END: + +Report any problem and ask any question on the Org mode [[https://orgmode.org/worg/org-mailing-list.html][mailing list]]. -- 2.40.0