From 5c716ea493eca589355bd84b640eb2ec45e42732 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 23 Nov 2011 12:48:09 +0200 Subject: [PATCH] fixed #24 - added some basic org-mode config --- init.el | 1 + modules/prelude-org.el | 47 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 modules/prelude-org.el diff --git a/init.el b/init.el index 07bcb70..d19b8d9 100644 --- a/init.el +++ b/init.el @@ -81,6 +81,7 @@ by Prelude.") (require 'prelude-js) (require 'prelude-latex) (require 'prelude-markdown) +(require 'prelude-org) (require 'prelude-perl) (require 'prelude-python) (require 'prelude-ruby) diff --git a/modules/prelude-org.el b/modules/prelude-org.el new file mode 100644 index 0000000..968e863 --- /dev/null +++ b/modules/prelude-org.el @@ -0,0 +1,47 @@ +;;; prelude-org.el --- Emacs Prelude: org-mode configuration. +;; +;; Copyright (c) 2011 Bozhidar Batsov +;; +;; Author: Bozhidar Batsov +;; URL: http://www.emacswiki.org/cgi-bin/wiki/Prelude +;; Version: 1.0.0 +;; Keywords: convenience + +;; This file is not part of GNU Emacs. + +;;; Commentary: + +;; Some basic configuration for org-mode. + +;;; License: + +;; This program is free software; you can redistribute it and/or +;; modify it under the terms of the GNU General Public License +;; as published by the Free Software Foundation; either version 3 +;; of the License, or (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. + +;;; Code: + +(add-to-list 'auto-mode-alist '("\\.org\\’" . org-mode)) +(global-set-key "\C-cl" 'org-store-link) +(global-set-key "\C-ca" 'org-agenda) +(global-set-key "\C-cb" 'org-iswitchb) + +(defun prelude-org-mode-hook () + (electric-indent-mode -1)) + +(add-hook 'org-mode-hook 'prelude-org-mode-hook) + +(provide 'prelude-org) + +;;; prelude-org.el ends here