This commit is contained in:
(≧◡≦) 2025-04-07 16:45:35 +02:00
parent b8c06cc7e4
commit bf66520d06

View file

@ -116,6 +116,9 @@ it. I don't think i'd ever use the overwritten.
:defer 1)
#+END_SRC
* My functions
Functions I wrote because emacs lisp is cool and useful.
#+begin_src emacs-lisp
(defun sosa/goto-previous-buffer ()
@ -200,6 +203,7 @@ Sane defaults!!!
#+BEGIN_SRC emacs-lisp
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(global-hl-line-mode)
(set-face-background hl-line-face "#434343")
@ -212,6 +216,9 @@ Sane defaults!!!
(set-face-background 'line-number nil)
(set-face-background 'line-number-current-line nil)
(setq-default Man-notify-method 'pushy)
;; BSD specific options
(cond ((eq system-type 'berkeley-unix)
(setq insert-directory-program "/usr/local/bin/gls")))
#+END_SRC
** Highlight matching parentheses
Useful for programming in lisp. I don't program in Lisp, but well.
@ -274,8 +281,9 @@ And to have multiple buffers
#+begin_src emacs-lisp
(use-package plan9-theme
:ensure t
:init(load-theme 'plan9 t))
:init(load-theme 'wombat t))
(set-cursor-color "purple")
#+end_src
** ctrlf
So, you know, C-s in emacs sucks, so this is a repleacement for that.
#+BEGIN_SRC emacs-lisp
@ -385,6 +393,8 @@ to fallback to hunspell. which does the same.
Ahhh, the emacs file browser, better than ranger and others...
Hide dotfiles:
#+BEGIN_SRC emacs-lisp
(use-package dired-icon
:ensure t)
(use-package dired-hide-dotfiles
:ensure t
@ -393,7 +403,7 @@ Hide dotfiles:
"My `dired' mode hook."
;; To hide dot-files by default
(dired-hide-dotfiles-mode)
(dired-icon-mode)
;; To toggle hiding
(define-key dired-mode-map "." #'dired-hide-dotfiles-mode))
@ -404,6 +414,7 @@ Hide dotfiles:
(add-hook 'dired-mode-hook
(lambda ()
(dired-hide-details-mode)))
#+END_SRC
Now let's make the thing lysergic
#+begin_src emacs-lisp
@ -414,7 +425,7 @@ Now let's make the thing lysergic
#+end_src
Good sorting
#+begin_src emacs-lisp
(setq dired-listing-switches "-aBhl --group-directories-first")
(setq dired-listing-switches "-aBhl --group-directories-first")
#+end_src
** kill ring popup
#+BEGIN_SRC emacs-lisp
@ -585,7 +596,7 @@ written in Perl.
** whitespace-cleanup-mode
Useful for makefiles.
#+begin_src emacs-lisp
(use-package whitespace-cleanup-mode
(use-package whitespace-cleanup-mode
:ensure t
:init(add-hook 'after-init-hook 'whitespace-cleanup-mode))
#+end_src