Quickly open any file in my already opened emacs
Tell emacs to be a server in your .emacs:
(server-mode)
| #version 130 | |
| // Some dead code for future reference. | |
| uniform samplerCube p3d_Texture0; | |
| uniform float time; | |
| uniform vec3 camera_position; | |
| // Input from vertex shader | |
| in vec2 texcoord; | 
| /* | |
| Copyright 2021 Antoine Morin-Paulhus | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | 
| (setq make-backup-files nil) | |
| (menu-bar-mode 0) | |
| (tool-bar-mode 0) | |
| (delete-selection-mode) | |
| (defun beforesave () | |
| "deletes trailing spaces" | |
| (delete-trailing-whitespace) | |
| ) | |
| (add-hook 'before-save-hook #'beforesave) | |
| (setq ring-bell-function 'ignore) | 
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| document, body, html{ | |
| font-family: sans-serif; | |
| padding:0; | |
| margin:0; | |
| max-height:100%; | 
| vec2(z.x * z.x - z.y * z.y, 2.0 * z.x * z.y) + vec2(-0.2, -0.7* z.y) // Mandeltree? | 
| version: "0.1" | |
| services: | |
| mydb: | |
| image: mariadb:10.5.8 | |
| ports: | |
| - "3306:3306" | |
| environment: | |
| MYSQL_ROOT_PASSWORD: 'mydb-password' | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin | 
| (defun newentry () | |
| "New log entry" | |
| (interactive) | |
| (search-forward "#now#") | |
| (beginning-of-line) | |
| (insert "\n\n") | |
| (insert (shell-command-to-string "date")) | |
| (dotimes (i 50) (insert "=")) | |
| (insert "\n") | |
| ) | 
| git status | tf status | 
| git diff | tf diff /format:Unified | 
| (i ^ j) % (i/j * t/10000 % 1000) > 1 | |
| ((i ^ j) % (j / i / 10) > 1) ^^ ((i ^ j) % (j/i/4) > 1) |