- Bash: Shell-script mode (built-in)
- C/C++: C++//l mode (built-in)
- Clojure: cider (https://github.com/clojure-emacs/cider)
- CSS: css-mode (built-in)
- Emacs: all of it
- Fortran: fortran mode (built-in)
- Go: go-mode (https://github.com/dominikh/go-mode.el)
- Haskell: haskell-mode (https://github.com/haskell/haskell-mode)
- Java: Use via lsp-mode? (https://xpressrazor.wordpress.com/2020/11/04/java-programming-in-emacs/)
- Javascript: rjsx-mode? (https://www.chadstovern.com/javascript-in-emacs-revisited/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Original from http://xenodium.com/trying-out-gccemacs-on-macos/index.html | |
set -o nounset | |
set -o errexit | |
# Configures Emacs for building native comp support | |
# http://akrl.sdf.org/gccemacs.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debugger mode defined in ‘debug.el’: | |
Mode for backtrace buffers, selected in debugger. | |
A line starts with ‘*’ if exiting that frame will call the debugger. | |
Type b or u to set or remove the ‘*’. | |
When in debugger due to frame being exited, | |
use the r command to override the value | |
being returned from that frame. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(openxlsx) | |
### tableone export helpers | |
### Turn tableone output matrix into tidyverse data_frame | |
tableone_mat_to_data_frame <- function(mat) { | |
bind_cols(data_frame(Variable = rownames(mat)), | |
as_data_frame(mat)) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 2018 Sep 18 | |
;; Emacs Meetup | |
;; Extensible MACroS | |
;; by Ruy Ley-Wild | |
(inert ;; programming vs metaprogramming | |
input data -program-> output data | |
42 -double-> 84 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "tableone (Lightning talk at Partners R User Group Meeting)" | |
author: "Kazuki Yoshida" | |
date: "`r format(Sys.time(), '%Y-%m-%d')`" | |
output: html_document | |
--- | |
```{r, message = FALSE, tidy = FALSE, echo = F} | |
## knitr configuration: http://yihui.name/knitr/options#chunk_options | |
library(knitr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cl-loop | |
for str in (thread-last | |
(number-sequence 1 60) | |
(seq-filter (lambda (x) (zerop (% x 5)))) | |
(seq-map (lambda (x) (concat "000" (number-to-string x)))) | |
(seq-map (lambda (x) (substring x -3))) | |
(seq-map (lambda (x) (concat "raw" x)))) | |
do (dired-mark-files-regexp str)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcustom company-backends `(;; Emacs Lisp | |
;; In newer versions of Emacs, company-capf is used instead. | |
,@(unless (version< "24.3.51" emacs-version) | |
(list 'company-elisp)) | |
;; BBDB https://www.emacswiki.org/emacs/CategoryBbdb | |
company-bbdb | |
;; nxml-mode | |
;; In Emacs >= 26, company-capf is used instead. | |
,@(unless (version<= "26" emacs-version) | |
(list 'company-nxml)) |
NewerOlder