Compare commits
4 Commits
90c3bcde72
...
032a10d0fa
Author | SHA1 | Date | |
---|---|---|---|
032a10d0fa | |||
e1557c3999 | |||
f068368fc9 | |||
b2846dc476 |
@ -1 +1 @@
|
|||||||
Subproject commit cd94dc00119b9bbe77897f49e44d4dec498c32fe
|
Subproject commit b00e7f839ab0aed872718c239874cf48e66a5644
|
@ -242,11 +242,7 @@
|
|||||||
are dedicated to my =st= terminal to set its font and shell. The font is set
|
are dedicated to my =st= terminal to set its font and shell. The font is set
|
||||||
as follows.
|
as follows.
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
st.font: Source Code Pro for Powerline:style=book
|
st.font: Fantasque Sans Mono:size=10:antialias=true
|
||||||
#+END_SRC
|
|
||||||
And I will set my shell like this:
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
st.shell: /usr/bin/fish
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
I can also set the transparency of st (my terminal emulator) like so:
|
I can also set the transparency of st (my terminal emulator) like so:
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
|
@ -545,8 +545,8 @@
|
|||||||
server, and to the LSP server of Dart.
|
server, and to the LSP server of Dart.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(dart :variables
|
(dart :variables
|
||||||
lsp-dart-project-sdk-dir "/opt/flutter/bin/cache/dart-sdk/"
|
lsp-dart-project-sdk-dir "/opt/dart-sdk/"
|
||||||
lsp-dart-sdk-dir "/opt/flutter/bin/cache/dart-sdk/")
|
lsp-dart-sdk-dir "/opt/dart-sdk/")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
When it comes to the Python layer, I set its backend and formatter to be
|
When it comes to the Python layer, I set its backend and formatter to be
|
||||||
@ -2468,8 +2468,8 @@ haskell
|
|||||||
~org-edit-src-code~. This means with the original value of
|
~org-edit-src-code~. This means with the original value of
|
||||||
~org-src-window-setup~ (~reorganize-frame~), the current frame will be
|
~org-src-window-setup~ (~reorganize-frame~), the current frame will be
|
||||||
split in two between the original org window and the source window, and
|
split in two between the original org window and the source window, and
|
||||||
once we quit the source window only the org window will remain . This is
|
once we quit the source window only the org window will remain. This is not
|
||||||
not a desired behavior for me, so I chose to set this variable to
|
a desired behavior for me, so I chose to set this variable to
|
||||||
~split-window-right~ in order to keep my windows organization and have a
|
~split-window-right~ in order to keep my windows organization and have a
|
||||||
similar behavior to the old one.
|
similar behavior to the old one.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -2477,6 +2477,27 @@ haskell
|
|||||||
;; (setq org-src-window-setup 'split-window-below)
|
;; (setq org-src-window-setup 'split-window-below)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
However, it is not rare that I want to change that for an horizontal split,
|
||||||
|
which can be achieved with the value ~split-window-below~. Thus, I have
|
||||||
|
made this function that allows me to switch between the (default) vertical
|
||||||
|
split and the horizontal split.
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defun phundrak/toggle-org-src-window-split ()
|
||||||
|
"This function allows the user to toggle the behavior of
|
||||||
|
`org-edit-src-code'. If the variable `org-src-window-setup' has
|
||||||
|
the value `split-window-right', then it will be changed to
|
||||||
|
`split-window-below'. Otherwise, it will be set back to
|
||||||
|
`split-window-right'"
|
||||||
|
(interactive)
|
||||||
|
(if (equal org-src-window-setup 'split-window-right)
|
||||||
|
(setq org-src-window-setup 'split-window-below)
|
||||||
|
(setq org-src-window-setup 'split-window-right))
|
||||||
|
(message "Org-src buffers will now split %s"
|
||||||
|
(if (equal org-src-window-setup 'split-window-right)
|
||||||
|
"vertically"
|
||||||
|
"horizontally")))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
**** Miscellaneous
|
**** Miscellaneous
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h-42ccf90a-f507-4fab-ae42-3fd815a34ef0
|
:CUSTOM_ID: h-42ccf90a-f507-4fab-ae42-3fd815a34ef0
|
||||||
@ -3234,14 +3255,19 @@ haskell
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(spacemacs/declare-prefix "oo" "org-mode")
|
(spacemacs/declare-prefix "oo" "org-mode")
|
||||||
(spacemacs/declare-prefix-for-mode 'org-mode "o" "custom" "User-defined keybindings")
|
(spacemacs/declare-prefix-for-mode 'org-mode "o" "custom" "User-defined keybindings")
|
||||||
|
(spacemacs/declare-prefix-for-mode 'org-mode "oT" "toggle" "Toggle org elements")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Now, I have a couple of shortcuts I use regularly:
|
Now, I have a couple of shortcuts I use regularly:
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(spacemacs/declare-prefix "ooT" "toggle")
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
||||||
"op" 'org-pomodoro
|
"oS" 'org-insert-structure-template
|
||||||
"os" 'org-insert-structure-template
|
"oTs" 'phundrak/toggle-org-src-window-split
|
||||||
"oT" 'org-sidebar-tree)
|
"oTt" 'org-sidebar-tree)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
~oss~ allows me to insert an org structure template defined in
|
~oss~ allows me to insert an org structure template defined in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user