Formatting , automatic
This commit is contained in:
parent
aec2f5c10f
commit
d20d945df7
@ -62,9 +62,9 @@
|
|||||||
:config
|
:config
|
||||||
(defun find-file-sudo (&rest throwaway)
|
(defun find-file-sudo (&rest throwaway)
|
||||||
(if buffer-file-name
|
(if buffer-file-name
|
||||||
(unless (or (file-writable-p buffer-file-name)
|
(unless (or (file-writable-p buffer-file-name)
|
||||||
(file-directory-p buffer-file-name))
|
(file-directory-p buffer-file-name))
|
||||||
(find-alternate-file (format "/sudo::%s" buffer-file-name)))))
|
(find-alternate-file (format "/sudo::%s" buffer-file-name)))))
|
||||||
(advice-add #'find-file :after #'find-file-sudo))
|
(advice-add #'find-file :after #'find-file-sudo))
|
||||||
|
|
||||||
|
|
||||||
@ -90,10 +90,10 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(let ((filename (or filename
|
(let ((filename (or filename
|
||||||
(concat "./"
|
(concat "./"
|
||||||
(file-relative-name
|
(file-relative-name
|
||||||
(read-file-name (edraw-msg "Write svg file: ")
|
(read-file-name (edraw-msg "Write svg file: ")
|
||||||
default-directory)
|
default-directory)
|
||||||
default-directory)))))
|
default-directory)))))
|
||||||
(insert (format "[[edraw:file=%s]]" filename))
|
(insert (format "[[edraw:file=%s]]" filename))
|
||||||
(backward-char)
|
(backward-char)
|
||||||
(org-return))))
|
(org-return))))
|
||||||
@ -199,11 +199,11 @@
|
|||||||
:diminish
|
:diminish
|
||||||
:if (not (display-graphic-p))
|
:if (not (display-graphic-p))
|
||||||
:custom
|
:custom
|
||||||
(evil-motion-state-cursor 'box) ; █
|
(evil-motion-state-cursor 'box) ; █
|
||||||
(evil-visual-state-cursor 'box) ; █
|
(evil-visual-state-cursor 'box) ; █
|
||||||
(evil-normal-state-cursor 'box) ; █
|
(evil-normal-state-cursor 'box) ; █
|
||||||
(evil-insert-state-cursor 'bar) ; ⎸
|
(evil-insert-state-cursor 'bar) ; ⎸
|
||||||
(evil-emacs-state-cursor 'hbar) ; _
|
(evil-emacs-state-cursor 'hbar) ; _
|
||||||
:config
|
:config
|
||||||
(evil-terminal-cursor-changer-activate)
|
(evil-terminal-cursor-changer-activate)
|
||||||
(xterm-mouse-mode))
|
(xterm-mouse-mode))
|
||||||
|
Loading…
Reference in New Issue
Block a user