Fix straight, added org-present
This commit is contained in:
parent
1d22fea493
commit
a991b44879
@ -1,6 +1,8 @@
|
|||||||
font:
|
font:
|
||||||
normal:
|
normal:
|
||||||
family: "CozetteVector"
|
family: "CozetteVector"
|
||||||
|
options:
|
||||||
|
antialias: off
|
||||||
|
|
||||||
bold:
|
bold:
|
||||||
family: "CozetteVector"
|
family: "CozetteVector"
|
||||||
@ -18,6 +20,9 @@ font:
|
|||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
window:
|
window:
|
||||||
padding:
|
padding:
|
||||||
x: 12
|
x: 12
|
||||||
|
@ -1,5 +1,26 @@
|
|||||||
(require 'org)
|
(require 'org)
|
||||||
|
|
||||||
|
;; Install straight.el
|
||||||
|
(defvar bootstrap-version)
|
||||||
|
(let ((bootstrap-file
|
||||||
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
|
(bootstrap-version 5))
|
||||||
|
(unless (file-exists-p bootstrap-file)
|
||||||
|
(with-current-buffer
|
||||||
|
(url-retrieve-synchronously
|
||||||
|
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
||||||
|
'silent 'inhibit-cookies)
|
||||||
|
(goto-char (point-max))
|
||||||
|
(eval-print-last-sexp)))
|
||||||
|
(load bootstrap-file nil 'nomessage))
|
||||||
|
|
||||||
|
;; Install use-package
|
||||||
|
(straight-use-package 'use-package)
|
||||||
|
|
||||||
|
;; Configure use-package to use straight.el by default
|
||||||
|
(use-package straight
|
||||||
|
:custom (straight-use-package-by-default t))
|
||||||
|
|
||||||
(org-babel-load-file
|
(org-babel-load-file
|
||||||
(expand-file-name "settings.org"
|
(expand-file-name "settings.org"
|
||||||
user-emacs-directory))
|
user-emacs-directory))
|
||||||
|
@ -3,35 +3,12 @@
|
|||||||
#+STARTUP: fold
|
#+STARTUP: fold
|
||||||
|
|
||||||
* Packages
|
* Packages
|
||||||
** Straight
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(defvar bootstrap-version)
|
|
||||||
(let ((bootstrap-file
|
|
||||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
|
||||||
(bootstrap-version 6))
|
|
||||||
(unless (file-exists-p bootstrap-file)
|
|
||||||
(with-current-buffer
|
|
||||||
(url-retrieve-synchronously
|
|
||||||
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
|
||||||
'silent 'inhibit-cookies)
|
|
||||||
(goto-char (point-max))
|
|
||||||
(eval-print-last-sexp)))
|
|
||||||
(load bootstrap-file nil 'nomessage))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Melpa
|
** Melpa
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(add-to-list 'package-archives
|
(add-to-list 'package-archives
|
||||||
'("melpa" . "https://melpa.org/packages/") t)
|
'("melpa" . "https://melpa.org/packages/") t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** use-package
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(dolist (package '(use-package))
|
|
||||||
(unless (package-installed-p package)
|
|
||||||
(package-install package)))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* General emacs
|
* General emacs
|
||||||
** Tab bar mode
|
** Tab bar mode
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -74,6 +51,7 @@
|
|||||||
** System path (macos)
|
** System path (macos)
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; Use system path on macos - needed for node
|
;; Use system path on macos - needed for node
|
||||||
|
|
||||||
(use-package exec-path-from-shell
|
(use-package exec-path-from-shell
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
@ -195,6 +173,15 @@
|
|||||||
:init
|
:init
|
||||||
(add-hook 'org-mode-hook 'org-appear-mode))
|
(add-hook 'org-mode-hook 'org-appear-mode))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** Presentations
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package org-present
|
||||||
|
:ensure t
|
||||||
|
:straight '(org-present
|
||||||
|
:type git
|
||||||
|
:host github
|
||||||
|
:repo "rlister/org-present"))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Development
|
* Development
|
||||||
** Git
|
** Git
|
||||||
@ -275,8 +262,6 @@ After installing the ~rust-analyzer~ program, the following can be used:
|
|||||||
(add-hook 'js2-mode-hook 'prettier-js-mode)
|
(add-hook 'js2-mode-hook 'prettier-js-mode)
|
||||||
(add-hook 'web-mode-hook 'prettier-js-mode)
|
(add-hook 'web-mode-hook 'prettier-js-mode)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS:
|
|
||||||
**** Prisma
|
**** Prisma
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package prisma-mode
|
(use-package prisma-mode
|
||||||
|
Loading…
Reference in New Issue
Block a user