I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.5 KiB

  1. #+TITLE: Interface
  2. #+AUTHOR: Christopher James Hayward
  3. #+EMAIL: chris@chrishayward.xyz
  4. #+PROPERTY: header-args:emacs-lisp :tangle interface.el :comments org
  5. #+PROPERTY: header-args:shell :tangle no
  6. #+PROPERTY: header-args :results silent :eval no-export :comments org
  7. #+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil
  8. #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil
  9. #+ATTR_ORG: :width 420px
  10. #+ATTR_HTML: :width 420px
  11. #+ATTR_LATEX: :width 420px
  12. [[../docs/images/what-is-emacs-teaser.png]]
  13. *Bring Emacs out of the eighties*
  14. * Completion
  15. There's a lot of occasions Emacs asks to input text to match a file name in a directory, just one example of an oppertunity for a completion system. *Swiper*[fn:1] is a family of packages that work towards this common goal in Emacs.
  16. ** Selection menu
  17. *Ivy*[fn:1] is a powerful selection menu for Emacs.
  18. #+begin_src emacs-lisp
  19. (use-package ivy
  20. :diminish
  21. :config (ivy-mode 1))
  22. #+end_src
  23. ** Replace built in commands
  24. *Counsel*[fn:1] is a customized set of commands to replace built in completion buffers.
  25. #+begin_src emacs-lisp
  26. (use-package counsel
  27. :after ivy
  28. :custom (counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only)
  29. :config (counsel-mode 1))
  30. #+end_src
  31. ** Additional details
  32. Provide more information about each item in the completion menu with *Ivy rich*[fn:2].
  33. #+begin_src emacs-lisp
  34. (use-package ivy-rich
  35. :after counsel
  36. :init (ivy-rich-mode 1))
  37. #+end_src
  38. * Fonts
  39. Write out to all of Emacs' available font faces with the unified font defined in the options.
  40. #+begin_src emacs-lisp
  41. (set-face-attribute 'default nil :font dotfiles/font :height dotfiles/font-size)
  42. (set-face-attribute 'fixed-pitch nil :font dotfiles/font :height dotfiles/font-size)
  43. (set-face-attribute 'variable-pitch nil :font dotfiles/font :height dotfiles/font-size)
  44. #+end_src
  45. ** Text scaling
  46. Define a transient keybinding for Scaling the text.
  47. #+begin_src emacs-lisp
  48. (defhydra hydra-text-scale (:timeout 4)
  49. "Scale"
  50. ("j" text-scale-increase "Increase")
  51. ("k" text-scale-decrease "Decrease")
  52. ("f" nil "Finished" :exit t))
  53. #+end_src
  54. + Scale the text inside of buffers with =SPC t f=
  55. * Increase =j=
  56. * Decrease =k=
  57. * Finished =f=
  58. #+begin_src emacs-lisp
  59. (dotfiles/leader
  60. "tf" '(hydra-text-scale/body :which-key "Font"))
  61. #+end_src
  62. * Icons
  63. - [ ] All the icons
  64. - [ ] All the icons dired
  65. * Themes
  66. * Line numbering
  67. * Pretty symbols
  68. * Ligatures
  69. * Dashboard
  70. * Resources
  71. [fn:1] https://github.com/abo-abo/swiper
  72. [fn:2] https://github.com/Yevgnen/ivy-rich