Downcase org stuff

master
Jacopo De Simoi 4 years ago
parent d5323940a1
commit ee992a200a
  1. 29
      zshrc.org

@ -1,9 +1,9 @@
#+TITLE: My .zshrc file #+title: My .zshrc file
#+AUTHOR: Jacopo De Simoi #+author: Jacopo De Simoi
#+HUGO_BASE_DIR: /ssh:ssh.jacopods.xyz:gists/ #+hugo_base_dir: /ssh:ssh.jacopods.xyz:gists/
#+HUGO_SECTION: zshrc #+hugo_section: zshrc
#+OPTIONS: creator:t toc:nil #+options: creator:t toc:nil
* Setup org-babel * Setup org-babel
This helper function checks the tags of the current headline and This helper function checks the tags of the current headline and
@ -29,12 +29,12 @@ are daily and pi, the function returns '(".zshrc" ".zshrc.pi")
* zshrc :@zsh: * zshrc :@zsh:
All posts in here will have the category set to /zsh/. All posts in here will have the category set to /zsh/.
** zshrc ** zshrc
:PROPERTIES: :properties:
:EXPORT_FILE_NAME: zshrc-file :export_file_name: zshrc-file
:EXPORT_DATE: 2020-08-05 :export_date: 2020-08-05
:EXPORT_HUGO_MENU: :menu "main" :export_hugo_menu: :menu "main"
:header-args: :tangle (org-tags-to-filenames) :header-args: :tangle (org-tags-to-filenames)
:END: :end:
# Note that one would have to export only this subtree, otherwise it # Note that one would have to export only this subtree, otherwise it
# is not going to work… This would need to be investigated # is not going to work… This would need to be investigated
@ -67,15 +67,13 @@ defined in the previous section.
fpath=(~/clones/zshrc/ $fpath) fpath=(~/clones/zshrc/ $fpath)
#+end_src #+end_src
*** KDE helpers :daily: *** KDE helpers :daily:
Define a number of KDE helpers. Define a number of KDE helpers.
- ~kde-current-activity~ returns the id of the current activity - ~kde-current-activity~ returns the id of the current activity
- ~kde-current-activity-name~ returns the name of the current activity - ~kde-current-activity-name~ returns the name of the current activity
The other two swap between build and src dirs on my local git checkout The other two swap between build and src dirs on my local git checkout
#+BEGIN_SRC sh #+begin_src sh
kde-current-activity () { kde-current-activity () {
qdbus org.kde.ActivityManager /ActivityManager/Activities org.kde.ActivityManager.Activities.CurrentActivity qdbus org.kde.ActivityManager /ActivityManager/Activities org.kde.ActivityManager.Activities.CurrentActivity
} }
@ -476,7 +474,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination
hash -d kde="/scratch/kde/src" hash -d kde="/scratch/kde/src"
hash -d kde5="/scratch/kde/src5" hash -d kde5="/scratch/kde/src5"
#+END_SRC #+end_src
*** Un-tarmak bindings :daily: *** Un-tarmak bindings :daily:
#+begin_src sh #+begin_src sh
bindkey "^t" forward-char bindkey "^t" forward-char
@ -491,8 +489,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination
:CREATED: [2021-05-01 Sat 13:35] :CREATED: [2021-05-01 Sat 13:35]
:END: :END:
* Local variables * Local variables
# Local Variables: # local variables:
# eval: (save-excursion (org-babel-goto-named-src-block "def-tag") (org-babel-execute-src-block)) # eval: (save-excursion (org-babel-goto-named-src-block "def-tag") (org-babel-execute-src-block))
# end: # end:

Loading…
Cancel
Save