Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
443 B

4 years ago
  1. (require 'yasnippet)
  2. (defun yas-c++-class-name (str)
  3. "Search for a class name like `DerivedClass' in STR
  4. (which may look like `DerivedClass : ParentClass1, ParentClass2, ...')
  5. If found, the class name is returned, otherwise STR is returned"
  6. (yas-substr str "[^: ]*"))
  7. (defun yas-c++-class-method-declare-choice ()
  8. "Choose and return the end of a C++11 class method declaration"
  9. (yas-choose-value '(";" " = default;" " = delete;")))