注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| ;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*- | |
| ;; Copyright (c) 2025 Nicolas P. Rougier | |
| ;; Released under the GNU General Public License 3.0 | |
| ;; Author: Nicolas P. Rougier <nicolas.rougier@inria.fr> | |
| ;; URL: https://github.com/rougier/nano-emacs | |
| ;; This is NANO Emacs in 256 lines, without any dependency | |
| ;; Usage (command line): emacs -Q -l nano.el -[light|dark] |
| #!/usr/bin/env bash | |
| ## Author: Abidán Brito | |
| ## This script builds GNU Emacs 29.1 with support for native elisp compilation, | |
| ## tree-sitter, libjansson (C JSON library), pure GTK and mailutils. | |
| # Exit on error and print out commands before executing them. | |
| set -euxo pipefail | |
| # Let's set the number of jobs to something reasonable; keep 2 cores |
| { | |
| "title": "CapsLock / Control / Tab", | |
| "rules": [ | |
| { | |
| "description": "Tap CapsLock (⇪) → Escape (⎋); Hold CapsLock (⇪) → Control (⌃)", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { |
| package com.sap.app | |
| import scala.reflect.runtime._ | |
| import scala.reflect.runtime.universe._ | |
| import scala.tools.reflect.ToolBox | |
| object ReflectionTestApp extends App { | |
| val cm = universe.runtimeMirror(getClass.getClassLoader) | |
| val toolBox = cm.mkToolBox() |
| import os | |
| import sys | |
| import colorsys | |
| """ | |
| Black 0;30 Dark Gray 1;30 | |
| Blue 0;34 Light Blue 1;34 | |
| Green 0;32 Light Green 1;32 | |
| Cyan 0;36 Light Cyan 1;36 | |
| Red 0;31 Light Red 1;31 |
Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!
Download the latest MSYS2 from this download page.
Install MSYS2 to, for example, C:\msys2 (make sure no space in path to avoid unwanted problems).
Optionally prettify the MSYS2 console mintty with ~/.minttyrc to make it more pleasing to eyes. Thanks to this awesome theme!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| scala> object O { | |
| | sealed abstract class Base; | |
| | case class Foo(id: Int, b: String) extends Base | |
| | case class Bar(id: Int, b: Boolean) extends Base | |
| | } | |
| defined module O | |
| scala> import O._ | |
| import O._ |