Shit for C

This commit is contained in:
qorg11 2022-03-05 00:05:45 +01:00
parent e0f721426a
commit 21a8626525
No known key found for this signature in database
GPG key ID: 343FC20A4ACA62B9

View file

@ -81,16 +81,16 @@ Remember to run M-x all-the-icons-install-fonts after the first
init to install the fonts.
#+BEGIN_SRC emacs-lisp
(use-package markdown-mode
:defer 1
:ensure t
:init(add-hook 'markdown-mode-hook 'auto-fill-mode)
(use-package all-the-icons
:defer 1
:ensure t)
(use-package which-key
:ensure t
:init (which-key-mode))
(use-package markdown-mode
:defer 1
:ensure t
:init(add-hook 'markdown-mode-hook 'auto-fill-mode))
(use-package all-the-icons
:defer 1
:ensure t)
(use-package which-key
:ensure t
:init (which-key-mode))
#+END_SRC
* Autoindentation
C-c n for indent-buffer. I don't use the rest.
@ -141,7 +141,6 @@ The basic emacs persdonalization lol
#+BEGIN_SRC emacs-lisp
(tool-bar-mode -1)
(menu-bar-mode -1)
(set-frame-font "Terminus 14" 12 t)
(global-hl-line-mode)
(set-face-background hl-line-face "gray13")
(setq-default cursor-type 'box)
@ -150,6 +149,8 @@ The basic emacs persdonalization lol
(defalias 'yes-or-no-p 'y-or-n-p)
;; Are you experienced?
(set-cursor-color "purple")
(set-face-background 'line-number "gray3")
(set-face-background 'line-number-current-line "gray13")
#+END_SRC
** Highlight matching parentheses
#+BEGIN_SRC emacs-lisp
@ -203,6 +204,9 @@ It should use your default shell by default.
(use-package alect-themes
:ensure t
:init(load-theme 'alect-black t))
(set-face-attribute 'default nil :font "Terminus 14" )
(set-frame-font "Terminus 14")
#+end_src
** ctrlf
So, you know, C-s in emacs sucks, so this is a repleacement for that.
@ -276,7 +280,10 @@ to.
:init
(add-hook 'c-mode-hook 'c-turn-on-eldoc-mode))
(setq c-default-style "k&r")
(add-hook 'c-mode-hook 'lsp-mode)
(add-hook 'c-mode-hook '(lambda ()
(lsp 1)
(flycheck-select-checker 'c/c++-clang)))
(setq c-mode-hook nil)
#+END_SRC
*** Raku
Raku, the cornerstone of any well designed programming language.
@ -322,7 +329,7 @@ Now for indent shit, so it matches the tabsize
;; Syntax highlighting in exports
(use-package htmlize
:ensure t)
#+end_src
#+end_src
**** Org-agenda
>Le attention deficit destroyer
#+begin_src emacs-lisp
@ -406,10 +413,9 @@ Scroll by lines rather than by pages.
(setq scroll-step 1)
(setq scroll-conservatively 10000)
(setq auto-window-vscroll nil)
(scroll-bar-mode -1)
(scroll-bar-mode 1)
#+end_src
** Sidebar
#+BEGIN_SRC emacs-lisp
(use-package dired-sidebar
:ensure t
@ -474,7 +480,8 @@ And same but jumping between frames
#+begin_src emacs-lisp
(use-package expand-region
:ensure t
:bind ("C-c C-e" . 'er/expand-region))
:init(global-unset-key (kbd "C-c C-q"))
(global-set-key (kbd"C-c C-q") 'er/expand-region))
#+end_src
** Beacon mode
#+begin_src emacs-lisp
@ -513,6 +520,7 @@ buffer and don't want a whole interface for just pressing enter.
I am tired of =M-x auto-fill-mode= in some modes
#+begin_src emacs-lisp
(add-hook 'org-mode-hook 'auto-fill-mode)
(add-hook 'text-mode-hook 'auto-fill-mode)
(add-hook 'sgml-mode-hook 'auto-fill-mode)
(add-hook 'sgml-mode-hook 'zencoding-mode)
#+end_src
@ -539,6 +547,7 @@ thankfully there's this thing.
:ensure t
:config
(add-hook 'org-mode-hook 'org-bullets-mode))
(local-unset-key (kbd"C-c C-q"))
#+end_src
** diff-hl
#+begin_src emacs-lisp
@ -608,7 +617,7 @@ This thing add sane shortcuts for emacs
:bind("C-c o" . 'crux-open-with)
:bind("C-c D" . 'crux-delete-buffer-and-file)
:bind("C-x C-r" . 'crux-reopen-as-root)
:bind("C-c d" . 'crux-duplicate-current-line-or-region)
:bind("C-x C-d" . 'crux-duplicate-current-line-or-region)
:bind("C-c u" . 'crux-view-url)
:bind("C-c s" . 'crux-create-scratch-buffer))
#+end_src
@ -643,3 +652,4 @@ own logo instead of Lain.
:init (doom-modeline-mode 1))
#+end_src