Emacs: GMP doc support, tex-verbatim font fix, snippets
parent
ffd962e29f
commit
90d773f01e
|
@ -510,6 +510,14 @@ has errors and/or warnings."
|
|||
(local-set-key (kbd "<backspace>") 'dired-up-directory)
|
||||
(local-set-key (kbd "b") 'dired-up-directory)))
|
||||
|
||||
;; GMP
|
||||
(eval-after-load "info-look"
|
||||
'(let ((mode-value (assoc 'c-mode (assoc 'symbol info-lookup-alist))))
|
||||
(setcar (nthcdr 3 mode-value)
|
||||
(cons '("(gmp)Function Index" nil "^ -.* " "\\>")
|
||||
(nth 3 mode-value)))))
|
||||
|
||||
|
||||
;; Bookmark file to cache folder
|
||||
(setq bookmark-default-file (concat emacs-cache-folder "emacs.bmk"))
|
||||
|
||||
|
|
|
@ -251,6 +251,7 @@ properly escaped with double-quotes in case it has spaces."
|
|||
(lambda ()
|
||||
(dolist (key '("\C-c\C-f" "\C-c\C-b"))
|
||||
(local-unset-key key))
|
||||
(set-face-attribute 'tex-verbatim nil :family "freemono")
|
||||
(set (make-local-variable 'compilation-scroll-output) t)
|
||||
(set (make-local-variable 'compilation-hide-window) t)
|
||||
(set (make-local-variable 'paragraph-start) "
|
||||
|
@ -262,6 +263,7 @@ properly escaped with double-quotes in case it has spaces."
|
|||
(add-hook 'latex-mode-hook (lambda () (local-set-key (kbd "M-RET") 'latex-itemize)))
|
||||
(add-hook 'latex-mode-hook 'turn-on-orgtbl)
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; The magnificent latex-math-preview mode!
|
||||
;; TODO: some symbols are not generated properly.
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
# name: define DEBUG_CMD
|
||||
# key: debug
|
||||
# --
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DEBUG_CMD(CMD) do {CMD;} while(0)
|
||||
#else
|
||||
#define DEBUG_CMD(CMD) do {} while(0)
|
||||
#endif
|
||||
|
||||
#define DEBUG_STR(STR) DEBUG_CMD(fprintf(stderr, ":: %s\n", STR))
|
||||
#define DEBUG_PRINT(...) DEBUG_CMD { \
|
||||
fprintf(stderr, "\n\033[31;1mDEBUG:\033[0m %s:%d:%s()\t", __FILE__, __LINE__, __func__); \
|
||||
fprintf(stderr, __VA_ARGS__);\
|
||||
fprintf(stderr, "\n"); \
|
||||
})
|
|
@ -1,6 +1,6 @@
|
|||
#name : type fun (args) { ... }
|
||||
# --
|
||||
${1:void}
|
||||
static ${1:void}
|
||||
${2:name} (${3:void})
|
||||
{
|
||||
$0
|
||||
|
|
Loading…
Reference in New Issue