From 8fd88f72f3c880d5bd2e77af43d0590dc09b20cf Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 11 Feb 2020 15:03:44 +0100 Subject: emacs: use the safer boundp function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 279b6d8..bf950f4 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1850,7 +1850,7 @@ There is this handy minor mode I've built which is [[https://github.com/mssola/w After that, I can configure it further. For example, I want and to export my current project into PDF and ODT respectively: #+BEGIN_SRC elisp -(when writer-mode-loaded +(when (boundp 'writer-mode-loaded) (define-key org-mode-map (kbd "") 'writer-org-export-to-pdf) (define-key org-mode-map (kbd "") 'writer-org-export-to-odt)) #+END_SRC -- cgit v1.2.3