Compare commits

..

No commits in common. "032a10d0fa146c6a832c083c6ee0f71f26926f98" and "90c3bcde72579bf98632efda59686880911f47fa" have entirely different histories.

3 changed files with 13 additions and 35 deletions

@ -1 +1 @@
Subproject commit b00e7f839ab0aed872718c239874cf48e66a5644
Subproject commit cd94dc00119b9bbe77897f49e44d4dec498c32fe

View File

@ -242,7 +242,11 @@
are dedicated to my =st= terminal to set its font and shell. The font is set
as follows.
#+BEGIN_SRC conf
st.font: Fantasque Sans Mono:size=10:antialias=true
st.font: Source Code Pro for Powerline:style=book
#+END_SRC
And I will set my shell like this:
#+BEGIN_SRC conf
st.shell: /usr/bin/fish
#+END_SRC
I can also set the transparency of st (my terminal emulator) like so:
#+BEGIN_SRC conf

View File

@ -545,8 +545,8 @@
server, and to the LSP server of Dart.
#+BEGIN_SRC emacs-lisp
(dart :variables
lsp-dart-project-sdk-dir "/opt/dart-sdk/"
lsp-dart-sdk-dir "/opt/dart-sdk/")
lsp-dart-project-sdk-dir "/opt/flutter/bin/cache/dart-sdk/"
lsp-dart-sdk-dir "/opt/flutter/bin/cache/dart-sdk/")
#+END_SRC
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-src-window-setup~ (~reorganize-frame~), the current frame will be
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 not
a desired behavior for me, so I chose to set this variable to
once we quit the source window only the org window will remain . This is
not 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
similar behavior to the old one.
#+BEGIN_SRC emacs-lisp
@ -2477,27 +2477,6 @@ haskell
;; (setq org-src-window-setup 'split-window-below)
#+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
:PROPERTIES:
:CUSTOM_ID: h-42ccf90a-f507-4fab-ae42-3fd815a34ef0
@ -3255,19 +3234,14 @@ haskell
#+BEGIN_SRC emacs-lisp
(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 "oT" "toggle" "Toggle org elements")
#+END_SRC
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
(spacemacs/set-leader-keys-for-major-mode 'org-mode
"oS" 'org-insert-structure-template
"oTs" 'phundrak/toggle-org-src-window-split
"oTt" 'org-sidebar-tree)
"op" 'org-pomodoro
"os" 'org-insert-structure-template
"oT" 'org-sidebar-tree)
#+END_SRC
~oss~ allows me to insert an org structure template defined in