Advertisement
Guest User

Untitled

a guest
Feb 25th, 2024
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. (require 'package)
  2. (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
  3. ;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`
  4. ;; and `package-pinned-packages`. Most users will not need or want to do this.
  5. ;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
  6. (package-initialize)
  7.  
  8. ;; (cua-mode t)
  9. ;; (setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands
  10. ;; (transient-mark-mode 1) ;; No region when it is not highlighted
  11. ;; (setq cua-keep-region-after-copy t) ;; Standard Windows behaviour
  12.  
  13.  
  14. (set-face-attribute 'default nil
  15. :family "noto sans monospace"
  16. :height 120
  17. ; :height 120
  18. :weight 'normal
  19. :width 'normal)
  20.  
  21. (setq-default cursor-type 'bar)
  22. ;; (setq scroll-step 1)
  23. (setq scroll-conservatively 120)
  24.  
  25. (load-file (let ((coding-system-for-read 'utf-8))
  26. (shell-command-to-string "agda-mode locate")))
  27.  
  28. ;; auto-load agda-mode for .agda and .lagda.md
  29. ;; (setq auto-mode-alist
  30. ;; (append
  31. ;; '(("\\.agda\\'" . agda2-mode)
  32. ;; ("\\.lagda.md\\'" . agda2-mode))
  33. ;; auto-mode-alist))
  34.  
  35.  
  36. (defun meow-setup ()
  37. (setq meow-cheatsheet-layout meow-cheatsheet-layout-qwerty)
  38. (meow-motion-overwrite-define-key
  39. '("j" . meow-next)
  40. '("k" . meow-prev)
  41. '("<escape>" . ignore))
  42. (meow-leader-define-key
  43. ;; S PC j/k will run the original command in MOTION state.
  44. '("j" . "H-j")
  45. '("k" . "H-k")
  46. ;; Use SPC (0-9) for digit arguments.
  47. '("1" . meow-digit-argument)
  48. '("2" . meow-digit-argument)
  49. '("3" . meow-digit-argument)
  50. '("4" . meow-digit-argument)
  51. '("5" . meow-digit-argument)
  52. '("6" . meow-digit-argument)
  53. '("7" . meow-digit-argument)
  54. '("8" . meow-digit-argument)
  55. '("9" . meow-digit-argument)
  56. '("0" . meow-digit-argument)
  57. '("/" . meow-keypad-describe-key)
  58. '("?" . meow-cheatsheet))
  59. (meow-normal-define-key
  60. '("0" . meow-expand-0)
  61. '("9" . meow-expand-9)
  62. '("8" . meow-expand-8)
  63. '("7" . meow-expand-7)
  64. '("6" . meow-expand-6)
  65. '("5" . meow-expand-5)
  66. '("4" . meow-expand-4)
  67. '("3" . meow-expand-3)
  68. '("2" . meow-expand-2)
  69. '("1" . meow-expand-1)
  70. '("-" . negative-argument)
  71. '(";" . meow-reverse)
  72. '("," . meow-inner-of-thing)
  73. '("." . meow-bounds-of-thing)
  74. '("[" . meow-beginning-of-thing)
  75. '("]" . meow-end-of-thing)
  76. '("a" . meow-append)
  77. '("A" . meow-open-below)
  78. '("b" . meow-back-word)
  79. '("B" . meow-back-symbol)
  80. '("c" . meow-change)
  81. '("d" . meow-delete)
  82. '("D" . meow-backward-delete)
  83. '("e" . meow-next-word)
  84. '("E" . meow-next-symbol)
  85. '("f" . meow-find)
  86. '("g" . meow-cancel-selection)
  87. '("G" . meow-grab)
  88. '("h" . meow-left)
  89. '("H" . meow-left-expand)
  90. '("i" . meow-insert)
  91. '("I" . meow-open-above)
  92. '("j" . meow-next)
  93. '("J" . meow-next-expand)
  94. '("k" . meow-prev)
  95. '("K" . meow-prev-expand)
  96. '("l" . meow-right)
  97. '("L" . meow-right-expand)
  98. '("m" . meow-join)
  99. '("n" . meow-search)
  100. '("o" . meow-block)
  101. '("O" . meow-to-block)
  102. '("p" . meow-yank)
  103. '("q" . meow-quit)
  104. '("Q" . meow-goto-line)
  105. '("r" . meow-replace)
  106. '("R" . meow-swap-grab)
  107. '("s" . meow-kill)
  108. '("t" . meow-till)
  109. '("u" . meow-undo)
  110. '("U" . meow-undo-in-selection)
  111. '("v" . meow-visit)
  112. '("w" . meow-mark-word)
  113. '("W" . meow-mark-symbol)
  114. '("x" . meow-line)
  115. '("X" . meow-goto-line)
  116. '("y" . meow-save)
  117. '("Y" . meow-sync-grab)
  118. '("z" . meow-pop-selection)
  119. '("'" . repeat)
  120. '("<escape>" . ignore)))
  121. (require 'meow)
  122. (meow-setup)
  123. (meow-global-mode 1)
  124. (custom-set-variables
  125. ;; custom-set-variables was added by Custom.
  126. ;; If you edit it by hand, you could mess it up, so be careful.
  127. ;; Your init file should contain only one such instance.
  128. ;; If there is more than one, they won't work right.
  129. '(inhibit-startup-screen t)
  130. '(package-selected-packages '(eat haskell-mode meow)))
  131. (custom-set-faces
  132. ;; custom-set-faces was added by Custom.
  133. ;; If you edit it by hand, you could mess it up, so be careful.
  134. ;; Your init file should contain only one such instance.
  135. ;; If there is more than one, they won't work right.
  136. )
  137.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement