llm stuff and idk
This commit is contained in:
parent
b9f59c6b80
commit
6178cd6bd8
2 changed files with 27 additions and 15 deletions
24
README.org
24
README.org
|
@ -2150,7 +2150,8 @@ GPTEL is a package that uses chatGPT to get some text generation in org-mode
|
|||
:host "ai.tfcconnection.org"
|
||||
:protocol "https"
|
||||
:stream t
|
||||
:models '("llama3.1:latest")))
|
||||
:models '("llama3.1:latest"))
|
||||
gptel-default-mode #'org-mode)
|
||||
(setq gptel-directives '((default
|
||||
. "You are a large language model living in Emacs and a helpful assistant. Respond concisely.")
|
||||
(programming
|
||||
|
@ -4599,8 +4600,6 @@ Let's add our own eshell prompt. and set the password cache to a significantly h
|
|||
("gg" "magit-status")
|
||||
("clear" "clear-scrollback")
|
||||
("!!" "eshell-previous-input 2")
|
||||
("yay" "paru $1")
|
||||
("yeet" "paru -Rns $1")
|
||||
("nixs" "nix search nixpkgs $1")
|
||||
("myip" "curl icanhazip.com")
|
||||
("ytd" "yt-dlp -o ~/Videos/%(title)s.%(ext)s $1")
|
||||
|
@ -4660,11 +4659,16 @@ Emulate a terminal
|
|||
(add-hook 'eshell-load-hook #'eat-eshell-mode))
|
||||
#+end_src
|
||||
|
||||
*** Esh-autosuggest
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
(use-package esh-autosuggest
|
||||
:hook (eshell-mode . esh-autosuggest-mode)
|
||||
:ensure nil)
|
||||
*** Eshell-syntax-highlighting
|
||||
#+begin_src emacs-lisp
|
||||
(use-package eshell-syntax-highlighting
|
||||
:config
|
||||
(eshell-syntax-highlighting-global-mode +1)
|
||||
:init
|
||||
(defface eshell-syntax-highlighting-invalid-face
|
||||
'((t :inherit diff-error))
|
||||
"Face used for invalid Eshell commands."
|
||||
:group 'eshell-syntax-highlighting))
|
||||
#+end_src
|
||||
|
||||
** Vterm
|
||||
|
@ -4696,7 +4700,7 @@ Let's use pdf-tools for a lot better interaction with pdfs.
|
|||
(interactive)
|
||||
(let* ((copies (completing-read "How many copies: " '("1" "2" "3")))
|
||||
(sides (completing-read "Print both sides or one? " '("two sided" "one sided")))
|
||||
(pdf-misc-print-program-args `("-o media=Letter" ,(format "-# %s" copies) "-o fitplot"
|
||||
(pdf-misc-print-program-args `("-o media=Letter" ,(format "-# %s" copies) "-P Home" "-o fit-to-page"
|
||||
,(if (string= sides "two sided")
|
||||
"-o sides=two-sided-long-edge"
|
||||
""))))
|
||||
|
@ -4704,7 +4708,7 @@ Let's use pdf-tools for a lot better interaction with pdfs.
|
|||
(pdf-misc-print-document (buffer-file-name) t)))
|
||||
|
||||
(custom-set-variables '(pdf-misc-print-program-executable "lpr")
|
||||
'(pdf-misc-print-program-args (quote ("-o media=Letter" "-o fitplot" "-o sides=two-sided-long-edge"))))
|
||||
'(pdf-misc-print-program-args (quote ("-o media=Letter" "-o fit-to-page" "-o sides=two-sided-long-edge"))))
|
||||
(add-hook 'pdf-view-mode-hook 'pdf-view-fit-page-to-window)
|
||||
(defun chris/display-line-numbers-off ()
|
||||
(display-line-numbers-mode -1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue