Quellcode durchsuchen

I validated poorly

cray
Mitch Tishmack vor 9 Jahren
Ursprung
Commit
6e3a5c9150
4 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. +1
    -1
      etangle
  2. +1
    -1
      nix.org
  3. +1
    -1
      readme.org
  4. +2
    -2
      tmux.org

+ 1
- 1
etangle Datei anzeigen

@@ -5,7 +5,7 @@
(require 'org)

(defun tangle/yn (p) (if (bound-and-true-p p) "yes" "no"))
(defun tangle/file (file p) (if (bound-and-true-p p) (concat "tmp/" file) "no"))
(defun tangle/file (file p) (if (eval p) (concat "tmp/" file) "no"))

(if (getenv "USEROPTS")
(dolist (fnam (split-string (getenv "USEROPTS") ":"))


+ 1
- 1
nix.org Datei anzeigen

@@ -11,7 +11,7 @@

Nix user config.nix setup.

#+BEGIN_SRC conf :tangle (tangle/file ".nixpkgs/config.nix" (bound-and-true-p nix-p))
#+BEGIN_SRC conf :mkdirp yes :tangle (tangle/file ".nixpkgs/config.nix" (bound-and-true-p nix-p))
let
pkgs = import <nixpkgs> {};
in


+ 1
- 1
readme.org Datei anzeigen

@@ -41,7 +41,7 @@ you try to edit the source block.

#+BEGIN_SRC emacs-lisp :tangle no
(defun tangle/yn (p) (if (bound-and-true-p p) "yes" "no"))
(defun tangle/file (file p) (if (bound-and-true-p p) (concat "tmp/" file) "no"))
(defun tangle/file (file p) (if (eval p) (concat "tmp/" file) "no"))
#+END_SRC

This is also all the "magique" that this whole stupid repo entails.


+ 2
- 2
tmux.org Datei anzeigen

@@ -10,7 +10,7 @@

Tmux configuration. Pretty boring in most ways.

#+BEGIN_SRC conf :tangle (tangle/file "tmux.conf" (bound-and-true-p tmux-p))
#+BEGIN_SRC conf :tangle (tangle/file ".tmux.conf" (bound-and-true-p tmux-p))
# Setup vi mode by default
set-window-option -g mode-keys vi
set-window-option -g aggressive-resize on
@@ -147,7 +147,7 @@ Tmux configuration. Pretty boring in most ways.

Only set xclip for x setup.

#+BEGIN_SRC conf :tangle (tangle/file (and (bound-and-true-p tmux-p) (bound-and-true x-p)))
#+BEGIN_SRC conf :tangle (tangle/file ".tmux.conf" (and (bound-and-true-p tmux-p) (bound-and-true-p x-p)))
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
bind C-y run "tmux save-buffer - | xclip -i"
#+END_SRC

Laden…
Abbrechen
Speichern