Просмотр исходного кода

Fixed some errors I hadnt notice due to long running session

Simon Watson 2 лет назад
Родитель
Сommit
78398bc761
3 измененных файлов с 34 добавлено и 6 удалено
  1. 15 5
      emacs/.emacs-all
  2. 18 0
      emacs/reveal-example.org
  3. 1 1
      tint2/tint2rc

+ 15 - 5
emacs/.emacs-all

@@ -93,6 +93,10 @@
 (beacon-mode)
 (global-set-key (kbd "C-c B") 'beacon-mode)
 
+;; Racket config
+;; (straight-use-package 'racket-mode)
+;; Using DrRacket for now
+
 ;; Org to reveal.js presentations
 ;; Docs: https://github.com/yjwen/org-reveal#configuration
 (straight-use-package 'org-reveal)
@@ -231,14 +235,21 @@
       `((".*" ,temporary-file-directory t)))
 
 ;;; Generic options for all OSs
-; Smooth mouse scroll a bit
-(setq mouse-wheel-scroll-amount '(1 ((shift) . 1) ((control) . nil)))
-(setq mouse-wheel-progressive-speed nil)
+;;; Smooth mouse scroll a bit
+;;; If scrolling performance is bad, remember the profiler:
+;;; https://christiantietze.de/posts/2020/12/emacs-scroll-performance-projectile/
+(setq mouse-wheel-progressive-speed t)
 
 ;; normal home/end behavior
 (global-set-key (kbd "<home>") 'beginning-of-line)
 (global-set-key (kbd "<end>") 'end-of-line)
 
+;; whitespace config
+;; make whitespace-mode use just basic coloring
+(setq whitespace-style '(face tabs))
+(setq tab-face (make-face 'tab-face))
+(set-face-background 'tab-face "gray")
+(setq whitespace-tab 'tab-face)
 
 (defun sol-dk ()
   (interactive)
@@ -263,8 +274,7 @@
 				 (fzf-find-file)))
 (global-set-key (kbd "C-c e") '(lambda ()
 				 (interactive)
-				 (diff-hl-modeca
-				  
+				 (diff-hl-mode)
 				 (diff-hl-flydiff-mode)))
 (global-set-key (kbd "C-c d") 'slime-describe-symbol)
 (global-set-key (kbd "C-c M-r") 'slime-restart-inferior-lisp)

+ 18 - 0
emacs/reveal-example.org

@@ -0,0 +1,18 @@
+#+STARTUP: indent
+#+REVEAL_INIT_OPTIONS: slideNumber:"c/t"
+#+OPTIONS: num:nil
+#+REVEAL_TITLE_SLIDE: %t
+
+* Foo Presentation
+  Foo is an interesting, cool new technology.
+* Foo has a few interesting properties
+** Foobaz
+   #+BEGIN_SRC shell
+   ./foo bar | baz
+   #+END_SRC
+** Footronixs
+   A very interesting slide!
+* About something else
+  Here I talk about something else that's also really interesting!
+* Thanks!
+  Thanks for coming to my ted talk!

+ 1 - 1
tint2/tint2rc

@@ -54,7 +54,7 @@ panel_dock = 0
 panel_pivot_struts = 0
 panel_position = bottom center horizontal
 panel_layer = bottom
-panel_monitor = DP-2-2
+panel_monitor = DP-1-2
 panel_shrink = 0
 autohide = 1
 autohide_show_timeout = 0.3