Replace evaluating a shell script with tangling a configuration file
This commit is contained in:
parent
6573a54cc2
commit
1d3d0b65f2
@ -5339,8 +5339,7 @@ Darwin that keeps each new connection for a day in order to reduce the rate of
|
||||
#+caption[A Music Player Daemon configuration file on Darwin]:
|
||||
#+caption: A Music Player Daemon configuration file on Darwin.
|
||||
#+name: lst:darwin-mpd-conf
|
||||
#+begin_src shell :eval (if (eq 'darwin system-type) "yes" "never") :results silent
|
||||
cat <<EOF > ~/.mpd/mpd.conf
|
||||
#+begin_src conf :tangle (if (eq 'darwin system-type) "~/.mpd/mpd.conf" "no")
|
||||
music_directory "~/Music"
|
||||
playlist_directory "~/.mpd/playlists"
|
||||
db_file "~/.mpd/mpd.db"
|
||||
@ -5359,7 +5358,6 @@ Darwin that keeps each new connection for a day in order to reduce the rate of
|
||||
name "CoreAudio"
|
||||
mixer_type "software"
|
||||
}
|
||||
EOF
|
||||
#+end_src
|
||||
|
||||
* [[info:emacs#Init File][Init File (info)]] footer
|
||||
|
Loading…
Reference in New Issue
Block a user