Get org-mode to load with all my changes on first start.
inhibit-startup-buffer-menu t
server-client-instructions nil
frame-resize-pixelwise t
- initial-scratch-message (message ";;; Emacs loaded in %s.\n\n" (emacs-init-time)))
+ initial-scratch-message (message ";;; Emacs loaded in %s.\n\n"
+ (emacs-init-time)))
;; Load External Libraries
(add-to-list 'load-path (concat user-emacs-directory "re/"))
(add-to-list 'load-path (concat user-emacs-directory "acme-mouse/"))
-(require 're-c-style)
(require 're-editing-defuns)
(require 're-packages)
(require 're-os-specific)
(require 're-electronics-defuns)
(require 're-plc-defuns)
(require 're-refrigeration-defuns)
- (require 're-skeletons)))
-
-;; Don't do anything with org until I call it
-(add-hook 'org-mode-hook (lambda ()
- #'abbrev-mode
- (require 're-org)))
+ (require 're-skeletons)
+ (require 're-org)
+ (require 're-org-defuns)))
+(add-hook 'c-mode-hook (lambda ()
+ (require 're-c-style)))
;; Buffer customizations
--- /dev/null
+;;; re-org-defuns.el --- Quae configurare -*- lexical-binding: t; -*-
+;; Haec pars Emacs non est.
+;; Code:
+
+(defun re/org-agenda-show-custom (&optional arg)
+ "Show my custom agenda."
+ (interactive "P")
+ (org-agenda arg " "))
+
+(defun re/org-show-agenda (&optional arg)
+ "Show the main agenda"
+ (interactive "P")
+ (org-agenda arg "a"))
+
+(defun re/org-auto-generate-ids-in-file ()
+ "Add ID properties to all headlines in the current
+ file which do not already have one."
+ (interactive)
+ (org-map-entries 'org-id-get-create))
+
+(defun re/tangle-init ()
+ "Tangle and compile init.org.
+Stolen from https://github.com/larstvei/dot-emacs."
+ (when (equal (buffer-file-name)
+ (expand-file-name (concat user-emacs-directory "config.org")))
+ (let ((prog-mode-hook nil))
+ (org-babel-tangle))))
+
+(provide 're-org-defuns)
+;;; hic terminatur re-org-defuns.el
;; Haec pars Emacs non est.
;; Code:
+(add-hook 'org-mode-hook (lambda ()
+ #'abbrev-mode))
+
(setq org-startup-folded t
org-startup-indented t)
org-src-preserve-indentation t
org-src-fontify-natively t)
-(defun re/org-agenda-show-custom (&optional arg)
- "Show my custom agenda."
- (interactive "P")
- (org-agenda arg " "))
-
-(defun re/org-show-agenda (&optional arg)
- "Show the main agenda"
- (interactive "P")
- (org-agenda arg "a"))
-
-(defun re/org-auto-generate-ids-in-file ()
- "Add ID properties to all headlines in the current
- file which do not already have one."
- (interactive)
- (org-map-entries 'org-id-get-create))
-
-(defun re/tangle-init ()
- "Tangle and compile init.org.
-Stolen from https://github.com/larstvei/dot-emacs."
- (when (equal (buffer-file-name)
- (expand-file-name (concat user-emacs-directory "config.org")))
- (let ((prog-mode-hook nil))
- (org-babel-tangle))))
-
(keymap-set org-mode-map "M-<right>" 'org-shiftmetaright)
(keymap-set org-mode-map "M-<left>" 'org-shiftmetaleft)
(keymap-set org-mode-map "M-S-<right>" 'org-metaright)