Skip to content

One way to resolve Limitation 2 #2

Description

@tillydray

When describing an actual production environment, it's easy to end up with duplicate /ssh:someuser@someserver:somedirectory/... :dir properties all over the file. This is extremely difficult to scan.

Here's how I solve this with :tangle (identity <var-name>)

#+begin_src emacs-lisp :tangle ~/.doom.d/config.el
(setq! my-doom-dir (expand-file-name "~/.doom.d")
       my-doom-config-file (expand-file-name "config.el" my-doom-dir)
       )
#+end_src

#+begin_src emacs-lisp :tangle (identity my-doom-config-file)
(do-stuff)
#+end_src

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions