I had one too many quotes in there. It should have been ,(mapcar 'car org-tag-persistent-alist)
The counsel command is nice too. I have a lot of helm muscle memory to work with though ;) Xebar Saram writes: > Thx so much guys for the great answers > > Kaushal Modi: cousel-org-tag is fantastic and works very well for me > > John: i did try helm with (mapcar 'car 'org-tag-persistent-alist ) but it > gave me an error: > > cons: Wrong type argument: sequencep, org-tag-persistent-alist > > > the code i used: > > (defun helm-tagger () > (interactive) > (helm > :sources > `((name . "HELM tag setter") > (candidates . ,(mapcar 'car 'org-tag-persistent-alist )) > (action . (lambda (candidate) > (org-set-tags-to (helm-marked-candidates))))))) > > > to be honest cousel-org-tag works really well but if anyone else is > interested in the helm part ive posted the error > > kind regards > > Z > > > > On Tue, May 31, 2016 at 6:40 AM, Kaushal Modi <kaushal.m...@gmail.com> > wrote: > >> >> >> On Mon, May 30, 2016, 11:18 PM Xebar Saram <zelt...@gmail.com> wrote: >> >>> thx so much john! >>> >>> is there a way where the function can auto read all the tags from >>> "org-tag-persistent-alist " instead of manfully adding to the function each >>> time a new tag is added? >>> >>> best >>> >>> Z >>> >> >> If you use the ivy-family of list completion, check out the counsel >> package, and the cousel-org-tag function in there. >> >>> -- >> >> -- >> Kaushal Modi >> -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu