Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating text from file on every C-c,C-a #276

Closed
veripoolbot opened this issue Aug 5, 2010 · 3 comments
Closed

Updating text from file on every C-c,C-a #276

veripoolbot opened this issue Aug 5, 2010 · 3 comments

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Andreas Olofsson
Original Redmine Issue: 276 from https://www.veripool.org
Original Date: 2010-08-05


My apologies if there is an easy way to do this already, but I couldn't find one, so I am adding this as a feature request. I am trying to insert a piece of text from a file in every file in our design and I want to make sure the text can be automatically updated every time I press C-c,C-a in a file.

I tried the following, but it inserts the text every time I do the c-a magic.

/AUTOINSERTLISP(insert (shell-command-to-string "cat copyright.txt"))/

Maybe this goes against the idea of emacs mode and is more along the line of a vpp, but I thought I would check.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-08-05T15:18:49Z


Um, I'm confused, don't you want it to insert on every C-c C-a?

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Andreas Olofsson
Original Date: 2010-08-05T17:36:30Z


Sorry for the confusion. I googled the issue and saw that someone else was having problems with this macro. I updated to the latest version of verilog-mode and it is now behaving as expected and working great!

/AUTOINSERTLISP(verilog-library-filenames (insert-file "copyright.txt"))/
// Beginning of automatic insert lisp
//Copyright 2010
//ACME Inc.
// End of automatics

Thanks,

Andreas

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-08-05T17:40:14Z


Glad it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant