init-misc.org 3.1 KB

Misc config - yet to be placed in separate files

misc

Set up zenburn theme


(use-package zenburn-theme)

setting up the agenda to run at start up

I used to use Emacs dashboard, because it looks pretty cool. But the dashboard takes a long time to load (because I am loading all my agenda files). And the first thing that I want to see when I open Emacs is my agenda list.

Huh. Running org-agenda list is actually slowing dawn my emacs file quite a bit. It's making Emacs load in all of my agenda files!

When I use this way to show the agenda, I get a weird error.


;;(setq initial-buffer-choice 'org-agenda-list)

;;(add-hook 'after-init-hook 'org-agenda-list)

COMMENT My preferred font. This may not be necessary. I believe I set my default font in custom.el

Make my default font be the cool Hack font. You might have to download it for your distribution.

I used to use this function to set the default font, but it's actually just easier to set up a font config file.

window-setup-hook after-make-frame-functions pop-up-frame-functions emacs-startup-hook

#+BEGIN_SRC emacs-lisp (defun my/set-default-font () "Command set up my default font." (interactive) (when (find-font (font-spec :family "Hack")) (set-default-font "Hack" nil t) (set-face-attribute 'default nil :height 110 )))

(my/set-default-font) (add-hook 'after-make-frame-functions 'my/set-default-font) (add-hook 'pop-up-frame-function 'my/set-default-font)

#+END_SRC

#+BEGIN_SRC sh :results output :exports both :dir ~/.config/fontconfig/ :tangle no cat fonts.conf #+END_SRC

#+RESULTS: #+begin_example

monospace Hack

#+end_example

This does something too, but I'm not sure what.


  ;;(add-to-list 'default-frame-alist '(font. "Hack Regular"))

provide this file


(provide 'init-misc)