add emacs to desktop

This commit is contained in:
Andreas Zweili 2022-03-03 19:30:18 +01:00
parent da559409cc
commit 626ebf58d9
29 changed files with 3255 additions and 0 deletions

View File

@ -7,6 +7,7 @@
./software/calibre
./software/czkawka
./software/dunst
./software/emacs
./software/evince
./software/git
./software/keeweb

View File

@ -0,0 +1 @@
alias ls 'ls -1 $1'

View File

@ -0,0 +1,81 @@
{ pkgs, ... }:
{
programs.emacs = {
enable = true;
extraPackages = epkgs: with pkgs;[
pandoc
epkgs.ace-window
epkgs.auctex
epkgs.avy
epkgs.biblio
epkgs.biblio-core
epkgs.bibtex-completion
epkgs.bind-key
epkgs.bug-hunter
epkgs.cfrs
epkgs.citeproc
epkgs.company
epkgs.company-auctex
epkgs.company-restclient
epkgs.company-web
epkgs.counsel
epkgs.deft
epkgs.dired-hide-dotfiles
epkgs.discover-my-major
epkgs.elisp-refs
epkgs.elpy
epkgs.epl
epkgs.evil
epkgs.evil-surround
epkgs.eyebrowse
epkgs.f
epkgs.flycheck
epkgs.general
epkgs.helpful
epkgs.highlight-indent-guides
epkgs.ht
epkgs.htmlize
epkgs.hydra
epkgs.know-your-http-well
epkgs.lv
epkgs.magit
epkgs.makey
epkgs.markdown-mode
epkgs.move-text
epkgs.nix-mode
epkgs.org
epkgs.org-ref
epkgs.org-superstar
epkgs.ox-pandoc
epkgs.parsebib
epkgs.pdf-tools
epkgs.pfuture
epkgs.pkg-info
epkgs.posframe
epkgs.powershell
epkgs.python-mode
epkgs.queue
epkgs.rainbow-delimiters
epkgs.restclient
epkgs.smooth-scrolling
epkgs.solarized-theme
epkgs.string-inflection
epkgs.swiper
epkgs.system-packages
epkgs.treemacs
epkgs.treemacs-evil
epkgs.use-package
epkgs.use-package-ensure-system-package
epkgs.web-completion-data
epkgs.web-mode
epkgs.which-key
epkgs.yaml-mode
epkgs.yasnippet-snippets
];
};
Home.file.".emacs.d/init.el".source = ./emacs.d/init.el;
home.file.".emacs.d/loader.org".source = ./emacs.d/loader.org;
home.file.".emacs.d/variables.el".source = ./emacs.d/variables.el;
home.file.".emacs.d/snippets".source = ./emacs.d/snippets;
home.file.".Eshell/alias".source = ./Eshell/alias;
}

View File

@ -0,0 +1,16 @@
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq vc-follow-symlinks t);; always follow symlinks
;; keep customize settings in their own file
(setq custom-file "~/.emacs.d/custom.el")
(when (file-exists-p custom-file)
(load custom-file))
(require 'ob-tangle)
(setq init-dir (file-name-directory (or load-file-name (buffer-file-name))))
(org-babel-load-file (expand-file-name "loader.org" init-dir))

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: New misc reference
# key: newmisc
# --
@misc{$1,
month = {{$2}},
note = {{\url{$3}}},
Urldate = {$4-$5-$6},
author = {$7},
title = {{$8}},
year = {$9},
}
$0

View File

@ -0,0 +1,21 @@
# -*- mode: markdown-mode -*-
# name: Markdown Blog Post
# key: _blogpost
# --
---
title: '$1'
published: true
publish_date: '$2-$3-$4 $5:$6'
taxonomy:
category:
- blog
tag:
- $7
header_image: '0'
summary:
format: short
author:
name: Andreas Zweili
---
[TOC]
$0

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Abbildung
# key: _abb
# --
, Abbildung:([[$0]]),

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Black LaTeX cell
# key: blackcell
# --
\cellcolor[HTML]{424242}

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: org config documentation template
# key: orgconf
# --
#+title:
#+setupfile: ~/nextcloud/03_documents/org/settings/html_theme/theme-readtheorg.setup
:preamble:
#+author: Andreas Zweili
:end:
#+begin_src sh :tangle ../bin/bin/example.sh :shebang #!/bin/bash
#+end_src

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: Latex Figure
# key: _figure
# --
#+caption: $1
#+name: fig:$2
[[file:pictures/$3]]
$0

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Green LaTeX cell
# key: greencell
# --
\cellcolor[HTML]{4CAF50}

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: New Page
# key: _newpage
# --
#+latex:\newpage

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Orange LaTeX cell
# key: orangecell
# --
\cellcolor[HTML]{FF9800}

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: Org Beamer
# key: orgbeamer
# --
#+title:
:preamble:
#+author: Andreas Zweili
#+startup: beamer
#+columns: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
:end:

View File

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: org reveal.js template
# key: orgrev
# --
#+title:
:preamble:
#+author: Andreas Zweili
#+options: toc:1 num:nil reveal_single_file:t
#+reveal_trans: linear
#+reveal_theme: solarized
#+reveal_root: ~/nextcloud/03_documents/org/settings/reveal.js
#+language: de
:end:

View File

@ -0,0 +1,18 @@
# -*- mode: snippet -*-
# name: PC aufsetzen
# key: _pc
# --
*** NEXT $1 aufsetzen [/]
- [ ] PC Setup Script ausführen
- [ ] Account Setup ausführen
- [ ] Startmenü aufräumen
- [ ] Chrome und Adobe Reader als Standardapplikation hinterlegen
- [ ] localadmin Passwort ändern
- [ ] localadmin Passwort in Keepass eintragen
- [ ] Windows Key hinterlegen
- [ ] Office Key hinterlegen
- [ ] Contria Kleber angebracht
$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: pic
# key: pic_
# --
#+attr_latex: :center
[[]]

View File

@ -0,0 +1,20 @@
# -*- mode: snippet -*-
# name: Template for a work project
# key: _project
# --
#+title: $1
:preamble:
#+setupfile: ~/nextcloud/03_documents/org/settings/html_theme/setup/theme-readtheorg.setup
#+author: Andreas Zweili
#+category: $2
:end:
* $1
$3
** TODO Tasks [/]
** Notes
$0

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Red LaTeX cell
# key: redcell
# --
\cellcolor[HTML]{f44336}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Sexy listing for latex export
# key: _sexy
# --
#+begin_export latex
\begin{sexylisting}{$1}
$2
\end{sexylisting}
#+end_export

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: table
# key: _table
# --
#+latex:{\footnotesize
#+caption: $1
#+attr_latex: :environment longtable :align |c|c| :placement [H]
#+name: tab:$2
$3
#+latex:}

View File

@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# name: org note template
# key: _note
# --
#+title: $1
:preamble:
#+setupfile: ../settings/html_theme/setup/theme-readtheorg.setup
#+author: Andreas Zweili
#+latex_header: \input{~/nextcloud/03_documents/org/settings/latex/style.tex}
:end:
$2

View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Toggle next sibbling
# key: _toggle
# --
:properties:
:trigger: next-sibling scheduled!("++0d") todo!("NEXT")
:end:

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: Clock Snippet for work task
# key: clk
# --
* Clock
:PROPERTIES:
:ID: e9f71012-4370-4dd2-af8e-9ae14d86508a
:END:

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Yellow LaTeX cell
# key: yellowcell
# --
\cellcolor[HTML]{FFEB3B}

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: puml template
# key: puml
# --
@startuml
skinparam dpi 300
@enduml

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Shebang
# key: _bang
# --
#!/usr/bin/python3

View File

@ -0,0 +1,9 @@
(setq enable-scroll-bar t)
(setq enable-color-theme t)
(setq enable-font t)
(setq enable-pdf-tools t)
(setq enable-auctex t)
(setq enable-org-bullets t)
(setq enable-ox-pandoc t)
(setq enable-emojis t)
(setq disable-fringe t)