Module | El4r::ELMethodsMixin |
In: |
bin/el4r-instance
|
EmacsLisp wrapper methods
EmacsLisp‘s let. name_and_value_list is [variable_name, value, variable_name, value…]. +name_and_value_list.length+ must be even. variable_name is a Symbol.
Create a new buffer with some initialization. With block, newbuf execute it by the context of the generated buffer.
A parameter is a Hash.
:name : | buffer-name |
:file : | find-file-noselect / insert-file-contents [with :name] |
:contents : | buffer-string |
:line : | goto-line |
:point : | goto-char [default is (point-max)] |
:display : | :pop / :only / true |
:current : | set-buffer |
:read_only : | buffer-read-only |
:bury : | bury-buffer |
Call defun-type macro. `mode’ is an EmacsLisp function to define. Most case the first argument is the function name.
`define_derived_mode’ and `define_minor_mode’ are examples of this method‘s usage.