timotheosh / obtt

Org-Babel Tangle Templates
GNU General Public License v3.0
1 stars 2 forks source link

`obtt-new` not working, or documentation lacking. #1

Open Honeypot95 opened 4 years ago

Honeypot95 commented 4 years ago

I am trying to use the obtt-new function to create a new project. I get a Wrong type argument: stringp, nil.

emacs -Q:

;;; use-package
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
;; (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(eval-when-compile
  (require 'use-package))

(use-package obtt
  :load-path "site-lisp/obtt/")

emacs-version:

GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-11-27

Operating system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal
timotheosh commented 4 years ago

You have to define obtt-templates-dir to where you want projects to be created. I suppose I could create a default location... maybe (concat (getenv "HOME") "/projects")