aboutsummaryrefslogtreecommitdiff
path: root/Doom/.doom.d/org
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-31 00:56:23 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-31 00:56:23 +0100
commitc6fa4ba25af09c1f8cb526da4c3bda3e98c71702 (patch)
treef9c3081fb871109df46f0ddbeb449feabc5dcbb4 /Doom/.doom.d/org
parentc5c8c8c4f10a0c253b6f722e2c1772e5967a8359 (diff)
downloaddotfiles-c6fa4ba25af09c1f8cb526da4c3bda3e98c71702.tar.gz
dotfiles-c6fa4ba25af09c1f8cb526da4c3bda3e98c71702.tar.bz2
dotfiles-c6fa4ba25af09c1f8cb526da4c3bda3e98c71702.zip
~dx:newline function config.org -> personal.org
Diffstat (limited to 'Doom/.doom.d/org')
-rw-r--r--Doom/.doom.d/org/config.org9
-rw-r--r--Doom/.doom.d/org/personal.org12
2 files changed, 12 insertions, 9 deletions
diff --git a/Doom/.doom.d/org/config.org b/Doom/.doom.d/org/config.org
index 8794805..12f153b 100644
--- a/Doom/.doom.d/org/config.org
+++ b/Doom/.doom.d/org/config.org
@@ -571,15 +571,6 @@ General keymap
#+END_SRC
*** Non-leader
#+BEGIN_SRC elisp
-(defun dx:newline (&optional BACKWARD)
- (interactive)
- (message "%s" BACKWARD)
- (let ((old (point)))
- (cond ((and BACKWARD (= BACKWARD 1)) (+default/newline-above))
- (t (+default/newline-below)))
- (goto-char (+ old 1))
- (evil-normal-state)))
-
(map!
:n "TAB" #'evil-jump-item
:n "M-v" #'dx:newline
diff --git a/Doom/.doom.d/org/personal.org b/Doom/.doom.d/org/personal.org
index 37a532a..f21bbce 100644
--- a/Doom/.doom.d/org/personal.org
+++ b/Doom/.doom.d/org/personal.org
@@ -71,3 +71,15 @@ Function to quickly check weather, which is what I wanted wttrin for.
(interactive)
(wttrin (dx:password-store/get-password "location")))
#+END_SRC
+* Newline
+Insert a newline without having to exit normal mode!
+#+BEGIN_SRC elisp
+(defun dx:newline (&optional BACKWARD)
+ (interactive)
+ (message "%s" BACKWARD)
+ (let ((old (point)))
+ (cond ((and BACKWARD (= BACKWARD 1)) (+default/newline-above))
+ (t (+default/newline-below)))
+ (goto-char (+ old 1))
+ (evil-normal-state)))
+#+END_SRC