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

Feature request: toggle-project-read-only #972

Closed
xin-jin opened this issue Mar 1, 2016 · 4 comments
Closed

Feature request: toggle-project-read-only #972

xin-jin opened this issue Mar 1, 2016 · 4 comments

Comments

@xin-jin
Copy link

xin-jin commented Mar 1, 2016

Hi,

ggtags has a very handy feature ggtags-toggle-project-read-only (but I don't use ggtags). Could you add it to projectile?

Thanks!

@bbatsov
Copy link
Owner

bbatsov commented Mar 1, 2016

What does it do?

@xin-jin
Copy link
Author

xin-jin commented Mar 1, 2016

As the name suggests, it basically toggles between

((nil
  (buffer-read-only . t)))

and

((nil
  (buffer-read-only)))

in .dir-locals.el in the project root.

@xin-jin
Copy link
Author

xin-jin commented Mar 1, 2016

It also makes all current buffers associated with files of the project read-only. Not sure how it is done. I am not familiar with elisp.

@Qquanwei
Copy link

I need too, when I reading git project source code without modify it.

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

No branches or pull requests

3 participants