From 8b4b59dbf19f2affc3eaaf69d3cc38efeede3981 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 13 Jan 2017 17:30:28 +0100 Subject: emacs: literate programming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Everything has been moved into an org file. Signed-off-by: Miquel Sabaté Solà --- emacs/settings/init-calendar.el | 45 ----------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 emacs/settings/init-calendar.el (limited to 'emacs/settings/init-calendar.el') diff --git a/emacs/settings/init-calendar.el b/emacs/settings/init-calendar.el deleted file mode 100644 index 3d94354..0000000 --- a/emacs/settings/init-calendar.el +++ /dev/null @@ -1,45 +0,0 @@ -;;; init-calendar.el --- Configuration for Calendar mode - -;; Copyright (C) 2016-2017 Miquel Sabaté Solà -;; -;; 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 this program. If not, see . - -;;; Commentary: -;; -;; Set Monday as the initial day and set Evil bindings. - -;;; Code: - -(defvar calendar-week-start-day 1) -(global-set-key (kbd "C-c c") 'calendar) - -(with-eval-after-load "evil" - (evil-set-initial-state 'calendar-mode 'normal) - (evil-define-key 'normal calendar-mode-map - "j" 'calendar-forward-week - "k" 'calendar-backward-week - "b" 'calendar-backward-day - "h" 'calendar-backward-day - "l" 'calendar-forward-day - "w" 'calendar-forward-day - "q" 'calendar-exit - "\C-h" 'evil-window-left - "\C-l" 'evil-window-right - "\C-j" 'evil-window-down - "\C-k" 'evil-window-up - "\C-n" 'calendar-scroll-left-three-months - "\C-p" 'calendar-scroll-right-three-months)) - -(provide 'init-calendar) -;;; init-calendar.el ends here -- cgit v1.2.3