emacs elpa安装orgmode

emacs elpa安装orgmode

官方网站:

环境:
CentOS7.2
emcase24.3.1


1.emacs 添加orgmode源
cat ~/.emacs.d/init.el

;; -*- emacs-lisp -*-

(package-initialize)                ;; Initialize & Install Package

(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

(require 'package)

(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)


2.安装orgmode
M-x list-packages 回车后会列出可用的包

h #帮助
n,p #上,下
i,d #标记为待安装,待删除
x #执行安装删除动作
空格 #翻页


File Edit Options Buffers Tools Package Help                                                        

  Package            Version      Status [v] Description                                            

  vlf                1.7          available  View Large Files

  w3                 4.0.49       available  Fully customizable, largely undocumented web browser f$

  wcheck-mode        2016.1.30    available  General interface for text checkers

  wconf              0.2.0        available  Minimal window layout manager

  web-server         0.1.1        available  Emacs Web Server

  websocket          1.6          available  Emacs WebSocket client and server

  windresize         0.1          available  Resize windows interactively

  wisi               1.1.4        available  Utilities for implementing an indentation/navigation e$

  wpuzzle            1.1          available  find as many word in a given time

  xclip              1.3          available  use xclip to copy&paste

  xelb               0.12         available  X protocol Emacs Lisp Binding

  xpm                1.0.4        available  edit XPM images

  yasnippet          0.11.0       available  Yet another snippet extension for Emacs.

I ztree              1.0.5        available  Text mode directory tree

  nlinum             1.6          installed  Show line numbers in the margin

D org                20170210     installed  Outline-based notes management and organizer

  python             0.25.2       installed  Python's flying circus support for Emacs

  5x5                             built-in   simple little puzzle game

  ada-mode                        built-in   major-mode for editing Ada sources

  add-log                         built-in   change log maintenance commands for Emacs

  align                           built-in   align text to a specific column, by regexp

  allout             2.3          built-in   extensive outline mode for use alone and with other mo$

  allout-widgets     1.0          built-in   Visually highlight allout outline structure.

  ange-ftp                        built-in   transparent FTP support for GNU Emacs

  animate                         built-in   make text dance

  ansi-color         3.4.2        built-in   translate ANSI escape sequences into faces

-UUU:%*--F1  *Packages*     26% L164   (Package Menu) ----------------------------------------------



3.激活orgmode
安装好后,默认的几个热键绑定

(global-set-key "\C-cl" 'org-store-link)

(global-set-key "\C-ca" 'org-agenda)

(global-set-key "\C-cc" 'org-capture)

(global-set-key "\C-cb" 'org-iswitchb)

(add-hook 'org-mode-hook 'turn-on-font-lock)

posted @ 2017-02-22 19:12  李庆喜  阅读(483)  评论(0编辑  收藏  举报