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

C-c C-f is a prefix key in a widely using latex-mode, replace to C-x C-' #4

Closed
wants to merge 1 commit into from

Conversation

zarkone
Copy link
Contributor

@zarkone zarkone commented Jun 24, 2014

No description provided.

@zenozeng
Copy link
Owner

I think this should be a customizable variable, maybe use defcustom is better?

@zarkone
Copy link
Contributor Author

zarkone commented Jun 25, 2014

You mean to replace in yafolding setup

(define-key global-map (kbd "C-'") 'yafolding)

with something like

(custom-set-variables '(......

?

@zenozeng
Copy link
Owner

defcustom is a Lisp macro.

(defcustom SYMBOL STANDARD DOC &rest ARGS)

Declare SYMBOL as a customizable variable.
SYMBOL is the variable name; it should not be quoted.
STANDARD is an expression specifying the variable's standard
value.  It should not be quoted.  It is evaluated once by
`defcustom', and the value is assigned to SYMBOL if the variable
is unbound.  The expression itself is also stored, so that
Customize can re-evaluate it later to get the standard value.
DOC is the variable documentation.

This macro uses `defvar' as a subroutine, which also marks the
variable as "special", so that it is always dynamically bound
even when `lexical-binding' is t.

Type C-h f defcustom for more infomation.

@zenozeng zenozeng closed this in 8f46053 Jul 2, 2014
zenozeng added a commit that referenced this pull request Jul 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants