emacs - Concatenate strings in abbrev file -


concatenate is not the reason for my abbreviations file? I would like to 'nv' to expand this small part of the code, and due to readability reasons I like to separate the string into several lines. However, summarized by MX is being ignored.

  (defined- abbrev-table 'python-mode- abbrev-table' (("env" (concatenate 'string "# / usr \ n" "__future__ import __future__ from imports split print_function \ N "" __future__ import absolute_import \ n "" __future__ import unicode_literals \ n \ n ") void 3)))    

Expression is not evaluated inside the quoted list. You can use backquote to selectively evaluate parts of the list structure:

  (define-abbrev-table 'dragon-mode-abbrev-table` (("env \ N "" __future__ import from print_function \ n "" from __future_ import absolute_import \ n "" __future__ import unicode_litels \ n \ n "" from), from zero to 3 (concatenate 'string "# \ n" )))   

Within a backpacked expression, the comma indicates parts that should be evaluated.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -