Comments (4)
I think it would be a good idea to add a control sequence like "$>" to allow the user
to control indentation in their snippet definitions. A per buffer variable is not
flexible enough. Also 'indent-according-to-mode' is the only sane way to do
indentation -- I work on several different projects at a time, they all have varying
coding styles, so blindly inserting tabs and spaces will not work.
Google Code Info:
Author: [email protected]
Created On: 2008-08-27T11:33:29.000Z
from yasnippet.
Yes, I know your requests. I'm also missing the "$>" feature from smart-snippet.
However, "$>" in smart-snippet doesn't really work well sometimes. For example, in
python-mode, indent-according-to-mode will make the overlays into garbage. But, in
fact, it works in most cases. The main reason I didn't add this feature to YASnippet
for such a long time might be that I didn't found a better solution. But, there are
so much users miss it, maybe it is still worth implementing it in YASnippet despite
it doesn't work well in some modes.
Google Code Info:
Author: [email protected]
Created On: 2008-08-27T11:41:00.000Z
from yasnippet.
Oh, I see. But that most definitely is a bug in Python mode, so the better approach
is to file a bug report against python-mode, not limiting your features to cater to
other people's bugs. (I don't use python-mode, so...)
Google Code Info:
Author: [email protected]
Created On: 2008-08-27T12:35:11.000Z
from yasnippet.
Fixed by adding $> support. Feel free to try it out by checking out the latest svn
version. Refer to
http://pluskid.lifegoo.com/upload/project/yasnippet/doc/define_snippet.html#indenting
for the document.
Google Code Info:
Author: [email protected]
Created On: 2008-09-02T13:07:52.000Z
from yasnippet.
Related Issues (20)
- Issues with native compilation when using straight.el and use-package HOT 12
- Use lexical-binding HOT 2
- Emacs Snippets not working anymore with Tree Sitter Major Modules HOT 22
- How to setup "Yas-Minor-Mode"
- csharp-mode bindings not working (sometimes) HOT 1
- please tag new release for Emacs 29 compat (affects MELPA stable and others) HOT 7
- Tests failing under Emacs 29+ HOT 13
- unwanted prompt when pressing TAB HOT 1
- self-defined function `expand-from-key-p`(which check current expanding come from key or binding) not work anymore after update to newest master. HOT 3
- update latex snippets for use with text selection
- Documentation webage 404s HOT 1
- yas--all-parents can fail to find all parents if called before snippet directory is loaded HOT 5
- Some functions don't work in yasnippet HOT 3
- Multi-line embedded lisp-code HOT 7
- Template variables do not work in template lines starting with # HOT 3
- delete-numberless-inner-snippet-issue-562 test failure (non-deterministic) HOT 6
- Error in condition evaluation: Symbol’s function definition is void: js2-node-type HOT 3
- elpy-snippet-init-assignments - "Symbol’s value as variable is void: start-point" HOT 1
- Suggestion: not preceded by space HOT 4
- special character
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yasnippet.