From 83e96e090a6181a6f33eb933f1571edcaf8ea83f Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 28 Feb 2013 22:09:31 +0100 Subject: [PATCH] Emacs: default mode to text-mode. Ranger: org file type support (seems to be a mime-type bug by the way). --- .config/ranger/rifle.conf | 4 ++-- .emacs.d/main.el | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf index 9eef8da2..2cf7473f 100644 --- a/.config/ranger/rifle.conf +++ b/.config/ranger/rifle.conf @@ -82,8 +82,8 @@ ext x?html?, has w3m, terminal = w3m "$@" # Define the "editor" for text files as first action mime ^text, label editor = "$EDITOR" -- "$@" mime ^text, label pager = "$PAGER" -- "$@" -!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" -!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@" +!mime ^text, label editor, ext org|xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" +!mime ^text, label editor, ext org|xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@" ext 1 = man "$1" ext s[wmf]c, has zsnes, X = zsnes "$1" diff --git a/.emacs.d/main.el b/.emacs.d/main.el index be9a6b8b..68aeed06 100644 --- a/.emacs.d/main.el +++ b/.emacs.d/main.el @@ -14,6 +14,9 @@ (add-hook 'minibuffer-setup-hook (lambda () (my-keys-minor-mode 0) ) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Default mode +(setq default-major-mode 'text-mode) + ;; Make questions less annoying (defalias 'yes-or-no-p 'y-or-n-p) @@ -146,3 +149,4 @@ ;; Calendar (setq calendar-week-start-day 1) (setq calendar-date-style 'iso) +