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

Font size in helm buffers #1038

Closed
duud opened this Issue May 28, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@duud

duud commented May 28, 2015

Is ther a way to set the font size of candidates in a helm buffer?
I couldn't find any customization for this.
I don't like this method, but currently I'm using:

(defun helm-buffer-face-mode ()
  "Helm buffer face"
  (interactive)
  (setq line-spacing 2)
  (buffer-face-set '(:family "Source Code Pro" :height 100)))

(add-hook 'helm-update-hook 'helm-buffer-face-mode)
@thierryvolpiatto

This comment has been minimized.

Show comment
Hide comment
@thierryvolpiatto

thierryvolpiatto May 29, 2015

Member

duud notifications@github.com writes:

Is ther a way to set the font size of candidates in a helm buffer?

No.

I don't like this method, but currently I'm using:

Good, but not supported in previous emacs versions.

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

Member

thierryvolpiatto commented May 29, 2015

duud notifications@github.com writes:

Is ther a way to set the font size of candidates in a helm buffer?

No.

I don't like this method, but currently I'm using:

Good, but not supported in previous emacs versions.

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

@thierryvolpiatto

This comment has been minimized.

Show comment
Hide comment
@thierryvolpiatto

thierryvolpiatto May 29, 2015

Member

duud notifications@github.com writes:

Is ther a way to set the font size of candidates in a helm buffer?

No.

I couldn't find any customization for this.

There is not yet for compatibility with older emacs.

I don't like this method, but currently I'm using:

(defun helm-buffer-face-mode ()
"Helm buffer face"
(interactive)
(setq line-spacing 2)
(buffer-face-set '(:family "Source Code Pro" :height 100)))

Good, but wrap your code in with-helm-buffer:

 (defun helm-buffer-face-mode ()
   "Helm buffer face"
   (interactive)
   (with-helm-buffer
     (setq line-spacing 2)
     (buffer-face-set '(:family "Source Code Pro" :height 100))))

(add-hook 'helm-update-hook 'helm-buffer-face-mode)

Probably using helm-after-initialize-hook is better.

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

Member

thierryvolpiatto commented May 29, 2015

duud notifications@github.com writes:

Is ther a way to set the font size of candidates in a helm buffer?

No.

I couldn't find any customization for this.

There is not yet for compatibility with older emacs.

I don't like this method, but currently I'm using:

(defun helm-buffer-face-mode ()
"Helm buffer face"
(interactive)
(setq line-spacing 2)
(buffer-face-set '(:family "Source Code Pro" :height 100)))

Good, but wrap your code in with-helm-buffer:

 (defun helm-buffer-face-mode ()
   "Helm buffer face"
   (interactive)
   (with-helm-buffer
     (setq line-spacing 2)
     (buffer-face-set '(:family "Source Code Pro" :height 100))))

(add-hook 'helm-update-hook 'helm-buffer-face-mode)

Probably using helm-after-initialize-hook is better.

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

@xuchunyang

This comment has been minimized.

Show comment
Hide comment
@xuchunyang

xuchunyang May 29, 2015

Member

Probably using helm-after-initialize-hook is better.

Off-topic: I have a question on this hook, its docstring says "This hook run inside ‘helm-buffer’ once created." Does it mean that function in this hook has helm-buffer as its current buffer? But the following demo tells me it's not true (its current buffer is helm-current-buffer):

(add-hook 'helm-after-initialize-hook (lambda () (message (buffer-name))))

or am I misunderstanding anything?

Member

xuchunyang commented May 29, 2015

Probably using helm-after-initialize-hook is better.

Off-topic: I have a question on this hook, its docstring says "This hook run inside ‘helm-buffer’ once created." Does it mean that function in this hook has helm-buffer as its current buffer? But the following demo tells me it's not true (its current buffer is helm-current-buffer):

(add-hook 'helm-after-initialize-hook (lambda () (message (buffer-name))))

or am I misunderstanding anything?

@thierryvolpiatto

This comment has been minimized.

Show comment
Hide comment
@thierryvolpiatto

thierryvolpiatto May 29, 2015

Member

Chunyang Xu notifications@github.com writes:

Probably using helm-after-initialize-hook is better.

Off-topic: I have a question on this hook, its docstring says "This
hook run inside ‘helm-buffer’ once created." Does it mean that
function in this hook has helm-buffer as its current buffer? But the
following demo tells me it's not true (its current buffer is
helm-current-buffer):

(add-hook 'helm-after-initialize-hook (lambda () (message
(buffer-name))))

or am I misunderstanding anything?

You're right the docstring is wrong, you have to ensure your code run in
the helm-buffer.

Will fix soon.

Thanks.

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

Member

thierryvolpiatto commented May 29, 2015

Chunyang Xu notifications@github.com writes:

Probably using helm-after-initialize-hook is better.

Off-topic: I have a question on this hook, its docstring says "This
hook run inside ‘helm-buffer’ once created." Does it mean that
function in this hook has helm-buffer as its current buffer? But the
following demo tells me it's not true (its current buffer is
helm-current-buffer):

(add-hook 'helm-after-initialize-hook (lambda () (message
(buffer-name))))

or am I misunderstanding anything?

You're right the docstring is wrong, you have to ensure your code run in
the helm-buffer.

Will fix soon.

Thanks.

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

@duud

This comment has been minimized.

Show comment
Hide comment

duud commented May 29, 2015

Thanks

@duud duud closed this May 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment