forked from purcell/emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
totry.el
66 lines (53 loc) · 2.28 KB
/
totry.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;;
;; Fonts
;; https://dev.to/codingones/a-better-shell-with-oh-my-zsh-1m0h
;;https://nilsdeppe.com/posts/emacs-c++-ide
;;URW Gothic
;;https://elpa.gnu.org/packages/gpastel.html
;;
;;https://mostlymaths.net/2010/02/debugging-with-emacsvalgrind.html/
;;(defun valgrind ()
;; (interactive)
;; (compilation-minor-mode)
;; (define-key compilation-minor-mode-map (kbd “")‘comint-send-input)
;; (define-key compilation-minor-mode-map (kbd “S-")‘compile-goto-error))
;;(add-hook ‘shell-mode-hook ‘valgrind)
;;https://github.com/purcell/exec-path-from-shell
;;;Mac man setup?
;;;https://www.reddit.com/r/emacs/comments/j2us9u/macos_users_are_you_missing_results_in_mx_man/
;;Emacs profile for those large compile buffer pauses
;;https://200ok.ch/posts/2020-10-01_basic_introduction_to_profiling_in_emacs.html
;;https://www.emacswiki.org/emacs/Yasnippet
;;https://stackoverflow.com/questions/11324752/emacs-c-c-doxygen-alternative-to-doxymacs-with-yasnippet
;; # -*- mode: snippet -*-
;; # name: cc-doxygen
;; # key: dox
;; # type: command
;; # contributor: Jonathan Kotta <[email protected]>
;; # --
;; (let* ((next-func-alist (doxymacs-find-next-func))
;; (func-name (cdr (assoc 'func next-func-alist)))
;; (params-list (cdr (assoc 'args next-func-alist)))
;; (return-name (cdr (assoc 'return next-func-alist)))
;; (snippet-text "")
;; (idx 1))
;; (setq snippet-text (format "/**\n * ${1:%s}\n * \n" func-name))
;; (setq idx 2)
;; (dolist (param params-list)
;; (unless (string= param "this")
;; (setq snippet-text (concat snippet-text
;; (format " * \\param %s ${%d:}\n" param idx)))
;; (setq idx (+ 1 idx))))
;; (when (and return-name (not (string= return-name "void")))
;; (setq snippet-text (concat snippet-text
;; (format " * \\return ${%d:%s}\n" idx return-name))))
;; (setq snippet-text (concat snippet-text " */"))
;; (yas/expand-snippet snippet-text))
;;;Source index tools
;;https://github.com/CoatiSoftware/Sourcetrail
;;https://github.com/MaskRay/emacs-ccls
;; Maybe this instead of switch-window in init-windows.el
;;https://melpa.org/#/ctrlxo
;;Eshell
;;http://www.modernemacs.com/post/custom-eshell/
;;https://gist.github.com/ekaschalk/f0ac91c406ad99e53bb97752683811a5