The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Create function org-space-key and bind it to SPC in org-mode

All it does is inserting the space character twice after a period.
gerrit-package
Gergely Polonkai 6 years ago
parent 4a949cc025
commit 5ef2a98858
  1. 7
      init.el
  2. 7
      lisp/text-manip.el

@ -371,6 +371,7 @@
;; Org mode
(use-package org
:ensure t
:demand
:init
(require 'xdg-paths)
(setq-default org-crypt-key "B0740C4C"
@ -399,7 +400,10 @@
'("p" "Blog post"
entry (file+datetree (concat org-directory "blog.org"))
"* %^{Title} :blog:\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
(setq org-time-stamp-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>")))
(setq org-time-stamp-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>"))
:bind
(:map org-mode-map
("SPC" . org-space-key)))
(use-package org-bullets
:init
@ -658,6 +662,7 @@
(load "enclose-string.el")
(load "buf-manipulation.el")
(load "package-manip")
(load "text-manip")
;; Define aliases
(defalias 'yes-or-no-p 'y-or-n-p)

@ -0,0 +1,7 @@
(defun org-space-key (&optional arg)
"Insert two spaces after a period."
(interactive "p")
(when (looking-back "\\.")
(call-interactively 'self-insert-command arg))
(call-interactively 'self-insert-command arg))
Loading…
Cancel
Save