From ec8fbec3c4c89b011ca2aa06b8b15282fe1e843f Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 25 May 2017 16:47:41 +0200 Subject: [PATCH] Exit prompt attempt --- emacs/.emacs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs b/emacs/.emacs index 6f9a46a..213472f 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -166,7 +166,6 @@ (evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter) (evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide)) - ;; Cursor centered (use-package centered-cursor-mode :ensure t @@ -257,6 +256,22 @@ (global-set-key (kbd "") 'cycle-window) +;; Exit prompt +(defun foreach (alist func) + (while alist + (progn + (funcall func (car alist)) + (setq alist (cdr alist))))) + +;(defun emacs-exit-prompt () +; (foreach +; (buffer-list) +; (lambda (buffer) +; (cond +; ((string-match "^\\*.*\\*$" (buffer-name buffer)) nil) +; ((null (buffer-modified-p buffer)) nil) +; (t nil))))) + ;; Latex german (quail-define-package "latex-german" "UTF-8" "LaGe" t "Transforms umlauts to the better latex notation.