conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Disable indent on newline for markdown files\n"
},
{
"from": "human",
"value": "(add-to-list 'auto-mode-alist '(\"\\\\.md\\\\'\" . markdown-mode))\n\n(add-hook\n 'markdown-mode-hook\n (lambda ()\n (local-unset-key (kbd \"<backtab>\"))))\n"
},
{
"from": "gp... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Indent by a fixed amount inside parens\n"
},
{
"from": "human",
"value": "(defun configure-sql-indentation ()\n \"Configure the indentation settings for `sqlind-minor-mode'.\"\n (require 'sql-indent-left)\n (setq\n sqlind-basic-offset 2\n sqlind-indentation-o... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add tooltip mode to remove tooltips\n"
},
{
"from": "human",
"value": "; ~/.emacs.d/my-gui.el\n\n;; Remove scrollbars, menu bars, and toolbars\n; when is a special form of \"if\", with no else clause, it reads:\n; (when <condition> <code-to-execute-1> <code-to-execu... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove revoken oauth token lol\n"
},
{
"from": "human",
"value": ";; modernizing Emacs' Package Menu\n;; with package ratings, usage statistics, customizability, and more\n(use-package paradox\n :defer 0.1\n :init\n (setq\n paradox-github-token \"5572ad3a003df7... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix modeline growing incrementally on big font mode\n\nFixes #575\n"
},
{
"from": "human",
"value": ";;; ui/doom-modeline/autoload.el -*- lexical-binding: t; -*-\n\n;;;###autoload\n(defun +doom-modeline|resize-for-big-font ()\n \"Adjust the modeline's height when `... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Enable +icons and +childframe for ivy in emacs\n"
},
{
"from": "human",
"value": ";;; init.el -*- lexical-binding: t; -*-\n\n(doom!\n :completion\n ivy\n (company +auto)\n\n :ui\n doom\n modeline\n ophints\n hl-todo\n nav-flash\n neotree\n (popup +all +defaults)\n (... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Disable eslint for typescript files\n"
},
{
"from": "human",
"value": "(add-hook\n 'typescript-mode-hook\n (lambda ()\n ;; Activate auto-fill-mode.\n (set-fill-column 100)\n (auto-fill-mode t)\n ;; Enable Flyspell.\n (flyspell-prog-mode)\n ;; Make enter indent... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add strong, a and h1 to html-mode wrap-region.\n"
},
{
"from": "human",
"value": "(require 'wrap-region)\n\n;; Active in all modes\n(wrap-region-global-mode t)\n\n;; Only wrap region if trigger key is given a negative prefix argument\n(setq wrap-region-only-with-neg... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Disable loading of `preview-latex' in emacs 24.4; that would still be\nloaded in emacs 24.3\n"
},
{
"from": "human",
"value": ";; Time-stamp: <2014-08-13 11:46:17 kmodi>\n\n;; LaTeX\n(load \"auctex.el\" nil t t)\n(load \"preview-latex.el\" nil t t)\n\n(setq LaTeX-co... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add projectile prefix to Emacs\n"
},
{
"from": "human",
"value": ";;; init-projectile.el -- projetile setup\n\n;;; Commentary:\n;;; load projectile and customizations\n\n;;; Code:\n(require 'use-package)\n\n(use-package projectile\n :commands (projectile-global-mod... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add publish with broken links\n"
},
{
"from": "human",
"value": ";; org publish options\n\n(setq org-publish-project-alist\n\t '(\n\t\t;; ... add all the components here (see below)...\n\n\t\t;; All org files (notes)\n\t\t(\"org-notes\"\n\t\t :base-directory \"~/or... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Clean up OSX mouse handling\n"
},
{
"from": "human",
"value": "(if (equal (getenv \"TERM_PROGRAM\") \"iTerm.app\")\n (progn\n ;; mouse integration\n (require 'mouse) ;; needed for iterm2 compatibility\n (require 'mwheel)\n \n (xterm-mouse... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add org files to agenda files list\n"
},
{
"from": "human",
"value": "(use-package org\n :mode (\"\\\\.org$\" . org-mode)\n :config\n (progn\n (require 'org-install)\n (define-key global-map \"\\C-cl\" 'org-store-link)\n (define-key global-map \"\\C-ca\"... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Make dired be able to toggle dot files\n"
},
{
"from": "human",
"value": ";;; setup-file-nav.el --- Set up tools to navigate through files.\n;;; Commentary:\n;;; Code:\n\n;; direx looks like a good alternative. I have tried NeoTree, but it sucks.\n(use-package direx... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add nim compilation command to smart-compile-alist\n"
},
{
"from": "human",
"value": ";; Time-stamp: <2017-03-24 16:44:20 kmodi>\n\n;; Nim\n;; https://github.com/nim-lang/nim-mode\n\n(use-package nim-mode\n :ensure t\n :mode ((\"\\\\.nim\\\\'\" . nim-mode)))\n\n\n... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add auto-complete package as dependency\n"
},
{
"from": "human",
"value": "(define-package\n \"fsharp-mode\"\n \"0.9\"\n \"F# mode for Emacs\"\n '((popup \"0.5\")\n (pos-tip \"0.4.5\")\n (s \"1.3.1\")\n (dash \"1.1.0\")))\n"
},
... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use clj-refactor in Melpa to work with cider 0.10.0, which requires clj-refactor 2.0.0-SNAPSHOT.\n"
},
{
"from": "human",
"value": "(require 'package)\n\n;; add-to-list add to list's front unless by t\n\n;; reset\n;;(setq package-archives nil)\n\n;; default GNU ELPA... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add files in ~/org to the Org agenda.\n"
},
{
"from": "human",
"value": ";; Personal Emacs configuration\n;; Lorenzo Cabrini <lorenzo.cabrini@gmail.com>\n\n;; Package management\n(require 'package)\n(setq package-archives '((\"gnu\" . \"https://elpa.gnu.org/packages... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Change my shortcut for ace-jump\n"
},
{
"from": "human",
"value": "(require 'ace-jump-mode)\n(define-key global-map (kbd \"C-c SPC\") 'ace-jump-mode)\n"
},
{
"from": "gpt",
"value": "(require 'ace-jump-mode)\n(define-key global-map (kbd \"C-0\") 'ace-jum... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix window not splitting correctly\n"
},
{
"from": "human",
"value": ";; Turn off mouse interface early in startup to avoid momentary display\n(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))\n(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))\n(if (fboundp 'scroll-ba... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Revert \"electric-pair-mode failed with python files.\"\n\nThis reverts commit d5b221c3e03a9fa1aed9f765e29304270cf12188.\n"
},
{
"from": "human",
"value": ";; Turn off menubar\n(menu-bar-mode -1)\n\n;; auto-indent\n(define-key global-map (kbd \"C-j\") 'newline-and-i... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix the header for the YAML package.el\n"
},
{
"from": "human",
"value": ";;; packages.el --- Ruby Layer packages File for Spacemacs\n;;\n;; Copyright (c) 2012-2014 Sylvain Benner\n;; Copyright (c) 2014-2015 Sylvain Benner & Contributors\n;;\n;; Author: Sylvain Benn... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use new global-rinari-mode in place of old hooks + rinari-launch scheme\n"
},
{
"from": "human",
"value": "(eval-after-load 'rinari\n `(let ((rinari-lib-dir (directory-of-library \"rinari\")))\n (unless (require 'jump nil t)\n (error \"jump.el not found; ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Change initialisation order for todochiku to better handle missing commands\n\nFixes #140\n"
},
{
"from": "human",
"value": "(require-package 'todochiku)\n\n(require 'todochiku) ;; growl notifications when compilation finishes\n(setq todochiku-icons-directory\n ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add rinari-launch to magit-mode-hook for convenience, since magit doesn't use the C-c prefix\n"
},
{
"from": "human",
"value": "(dolist (hook '(nxml-mode-hook haml-mode-hook sass-mode-hook))\n (add-hook hook (lambda () (rinari-launch))))\n(defun update-rails-ctags ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Drop dired+ and use diredfl for enhanced font-locking\n"
},
{
"from": "human",
"value": "(require-package 'dired+)\n(require-package 'dired-sort)\n\n(setq-default diredp-hide-details-initially-flag nil\n dired-dwim-target t)\n\n;; Prefer g-prefixed core... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Tidy up terminal-notifier code, and skip file test when not on OS X\n"
},
{
"from": "human",
"value": "(require 'todochiku) ;; growl notifications when compilation finishes\n(setq todochiku-icons-directory (expand-file-name \"~/.emacs.d/site-lisp/todochiku-icons\"))... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Handle console-only Emacs builds, which lack mwheel-install\n\nCloses #85\n"
},
{
"from": "human",
"value": "(require 'init-frame-hooks)\n\n(defun fix-up-xterm-control-arrows ()\n (let ((map (if (boundp 'input-decode-map)\n input-decode-map\n ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Make ui/fci's automatic color change customizable\n"
},
{
"from": "human",
"value": ";;; ui/fci/config.el -*- lexical-binding: t; -*-\n\n(def-package! fill-column-indicator\n :hook ((text-mode prog-mode conf-mode) . turn-on-fci-mode)\n :config\n (defun +fci|set-c... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add a new dired function to only show files that match a regexp\n"
},
{
"from": "human",
"value": ";;; dired-conf.el -- Settings for dired-mode\n(eval-when-compile\n (require 'dired)\n (require 'dired-aux))\n\n(setq dired-listing-switches \"-lRA --ignore='.git' --... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove parinfer, forces me to use lispy more\n"
},
{
"from": "human",
"value": "(defconst olical-lisp-packages\n '(lispy\n parinfer))\n\n(defun olical-lisp/init-lispy ()\n (use-package lispy))\n\n(defun olical-lisp/init-parinfer ()\n (use-package parinfer\n ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use GNU ls since it supports --dired\n"
},
{
"from": "human",
"value": ";; Default js indentation levels\n(setq-default js2-basic-offset 2)\n(setq js-indent-level 2)\n\n;; Disallow scrolling with mouse wheel\n(mouse-wheel-mode nil)\n\n;; Don't screw up key bindings ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add pylama checker to flycheck\n"
},
{
"from": "human",
"value": "(add-hook 'after-init-hook #'global-flycheck-mode)\n(add-to-list 'display-buffer-alist\n `(,(rx bos \"*Flycheck errors*\" eos)\n (display-buffer-reuse-window\n ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add commands for searching backwards too.\n"
},
{
"from": "human",
"value": "(global-set-key (kbd \"C-s\") 'isearch-forward-regexp)\n(global-set-key (kbd \"<home>\") 'beginning-of-line)\n(global-set-key (kbd \"<end>\") 'end-of-line)\n(global-set-key (kbd \"M-<home>\... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Improve description of why we mark go-mode to be indent sensitive\n"
},
{
"from": "human",
"value": ";; -*- lexical-binding: t -*-\n\n;; Auto-indent after paste in Go triggers goimports, that makes pasting imports\n;; difficult. Let's let gofmt triggered by file sav... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "pdf-tools: Delete the outline buffer when jumping away\n\nThis also helps ensure a new outline is created the next time one is\nneeded and will match the PDF document. (Reloading the PDF doesn't\nseem to also reload the outline.)\n"
},
{
"from": "human",
"value": "... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Change key map for redo\n"
},
{
"from": "human",
"value": ";; ==============================================================================\n;; Undo/redo extensions\n;; ------------------------------------------------------------------------------\n\n;; (use-packag... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add feature detection for company-phpactor\r\n\r\n`company-phpactor` separation gives us the ability to only install it if `company` is enabled.\n\nCo-Authored-By: Oleksii Filonenko <389acbe81f0fd7fe3ec649f394c339e6fc62238f@protonmail.com>"
},
{
"from": "human",
"va... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Move lua setup to init block\n"
},
{
"from": "human",
"value": "(setq lua-packages\n '(\n company\n flycheck\n lua-mode\n ))\n\n(defun lua/post-init-flycheck ()\n (spacemacs/add-flycheck-hook 'lua-mode))\n\n(defun lua/init-lua-mode ()\n (use-package l... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Enable follow-mode for programming modes, for multi-column editing.\n"
},
{
"from": "human",
"value": ";; set your desired tab width\n(setq-default indent-tabs-mode nil)\n\n;; enable y/n answers\n(fset 'yes-or-no-p 'y-or-n-p)\n\n;; highlight matching parens\n(show-p... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add more space for line number\n"
},
{
"from": "human",
"value": "(req-package linum\n :config\n (add-hook 'prog-mode-hook #'linum-mode)\n (setq linum-format \"%3d\\u2502\"))\n"
},
{
"from": "gpt",
"value": "(req-package linum\n :config\n (add-hook ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Set the number of recenf files list\n"
},
{
"from": "human",
"value": "(use-package helm\n :config\n (setq helm-split-window-default-side 'below)\n (helm-mode 1)\n :bind\n ((\"M-x\" . helm-M-x)))\n\n(use-package helm-ls-git\n :config\n (progn\n (use-packag... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix off-by-one error in Emacs integration\n"
},
{
"from": "human",
"value": ";;; go-keyify.el --- keyify integration for Emacs\n\n;; Copyright 2016 Dominik Honnef. All rights reserved.\n;; Use of this source code is governed by a BSD-style\n;; license that can be fo... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add cljs mode and localleader keybindings\n"
},
{
"from": "human",
"value": ";;; lang/clojure/config.el -*- lexical-binding: t; -*-\n\n(def-package! clojure-mode\n :mode \"\\\\.clj$\")\n\n(def-package! cider\n :commands (cider-jack-in cider-mode)\n :config\n (se... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove forced project.el recipe hack\n\nNow that straight.el fixed the bug upstream there's no reason to force it anymore"
},
{
"from": "human",
"value": ";; -*- no-byte-compile: t; -*-\n;;; tools/lsp/packages.el\n\n(if (featurep! +eglot)\n (progn\n (package... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use full pretty symbol set in tuareg mode\n"
},
{
"from": "human",
"value": ";; OCaml\n;; Use the opam installed utop\n(setq utop-command \"opam config exec -- utop -emacs\")\n(autoload 'utop-minor-mode \"utop\" \"Minor mode for utop\" t)\n(add-hook 'tuareg-mode-hoo... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Update whole line or region\n"
},
{
"from": "human",
"value": "(column-number-mode t)\n(display-time-mode 1)\n(electric-pair-mode t)\n(auto-fill-mode -1)\n(global-linum-mode 1)\n(setq-default indent-tabs-mode nil)\n(popwin-mode 1)\n(delete-selection-mode 1)\n(drag-s... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove M-c and M-v bindings under OS X.\n\nM-v clashes with the default key for scrolling up.\n\nIt's arguably better to use the standard yank/kill bindings consistently\nwithin Emacs.\n"
},
{
"from": "human",
"value": "(when *is-a-mac*\n (setq mac-command-modifier... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Refactor defuns to fix some problems\n"
},
{
"from": "human",
"value": "(defun kotct/dot-config-directory ()\n \"Returns the directory name for where our machine-local Dot configuration directory should be.\"\n (concat (file-name-directory (or (getenv \"XDG_CONFIG... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove the Ruby version from the modeline\n\nThe face settings rbenv uses to display the Ruby version in the modeline are\njust too jarringly different from the rest of the modeline. It is also\nunnecessary information, I _know_ which version I set in `.ruby-version`, there\nis... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Reduce the auto-connect channels for ERC startup\n"
},
{
"from": "human",
"value": "(use-package erc\n :init\n (setq erc-autojoin-channels-alist\n '((\"freenode.net\"\n ;; \"##aws\"\n ;; \"##C\"\n ;; \"##C++-general\"\n ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add cargo mode for rust\n"
},
{
"from": "human",
"value": "(require 'company)\n(require 'racer)\n(require 'rust-mode)\n(require 'eldoc)\n(require 'flycheck)\n(require 'flycheck-rust)\n\n(add-to-list 'auto-mode-alist '(\"\\\\.rs\\\\'\" . rust-mode))\n(add-hook 'rust-... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add completion hook for ansible mode.\n"
},
{
"from": "human",
"value": ";;; my-ansible.el --- Ansible mode settings -*- lexical-binding: t -*-\n\n;; Copyright (C) 2016 Sergey Timanin\n\n;; Licensed under the Apache License, Version 2.0 (the \"License\");\n;; you m... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Change font size depending in the platform\n"
},
{
"from": "human",
"value": ";; important for golden-ratio to better work\n(setq window-combination-resize t)\n;; edit area full screen\n(tool-bar-mode -1)\n(menu-bar-mode -1)\n(scroll-bar-mode -1)\n;; fringes\n(set-f... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Change background for tab and column>80\n\nColors are changed because of True Color support.\n"
},
{
"from": "human",
"value": ";; hide menu bar\n(menu-bar-mode 0)\n\n;; line number\n(global-linum-mode 1)\n(setq linum-format \"%d \")\n\n;; spaces\n(require 'whitesp... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Apply performance tuning suggested by the all-the-icons README\n"
},
{
"from": "human",
"value": "(defconst mfa-dired-packages '(all-the-icons all-the-icons-dired dired-narrow dired))\n\n(defun mfa-dired/init-all-the-icons ()\n (use-package all-the-icons\n :defe... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix incorrect type in dir locals file\n\nThe argument should be a list.\n\nSigned-off-by: Nicolas Bock <f98f0827b96d4d55ae7f19f2b371a91ca0f3d663@gmail.com>\n"
},
{
"from": "human",
"value": ";;; Directory Local Variables\n;;; For more information see (info \"(emacs)... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove flyckeck check on idle.\n"
},
{
"from": "human",
"value": "(require 'flycheck-color-mode-line)\n\n(eval-after-load \"flycheck\"\n '(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode))\n"
},
{
"from": "gpt",
"value": "(require 'flycheck-... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix trailing reference to ac-nrepl\n"
},
{
"from": "human",
"value": "(require 'init-clojure)\n(require-package 'emacs '(24))\n\n(require-package 'cider)\n(require-package 'ac-cider)\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add a default value for ‘compile-command’\n"
},
{
"from": "human",
"value": ";;; Directory Local Variables\n;;; For more information see (info \"(emacs) Directory Variables\")\n\n((nil . ((bug-reference-url-format . \"https://bugs.gnu.org/%s\")\n (indent-tab... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add the ability to recenter the display from a remote\n"
},
{
"from": "human",
"value": ";;; projector.el -- Functions for projecting.\n(eval-when-compile\n (require 'highline))\n\n(defvar pjones:projector-font-big\n \"-unknown-DejaVu Sans Mono-normal-normal-norma... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "[Emacs] Reduce error check in emacs-lisp\n"
},
{
"from": "human",
"value": ";; * Flycheck\n\n(my/ensure-package-installed 'flycheck)\n\n(add-hook 'prog-mode-hook 'flycheck-mode)\n\n(setq flycheck-indication-mode nil)\n(setq flycheck-display-errors-delay 100) ; worka... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Set Monaco as the font in OS X.\n"
},
{
"from": "human",
"value": ";; don't show the startup help screen\n(setq inhibit-startup-screen t)\n\n;; mode line settings\n(column-number-mode t)\n(line-number-mode t)\n(size-indication-mode t)\n\n;; remove clutter from the U... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Make x-underline at descender line, not base line\n"
},
{
"from": "human",
"value": "(defvar current-theme\n nil\n \"The currently enabled theme.\")\n\n(defun switch-to-theme (theme)\n \"Enable the theme THEME. Disable the current theme.\"\n (if current-theme (d... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Update git-link bindings, improve modi/git-link\n"
},
{
"from": "human",
"value": ";; Time-stamp: <2016-05-19 22:24:54 kmodi>\n\n;; Git Link\n;; https://github.com/sshaw/git-link\n\n(use-package git-link\n :load-path \"elisp/git-link\"\n :bind (:map region-binding... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use more descriptive symbol names than `i' and `n'\n"
},
{
"from": "human",
"value": ";;; word-count.el --- word-count Exercise (exercism)\n\n;;; Commentary:\n\n;;; Code:\n\n\n(defun word-count (sentence)\n (let ((count nil))\n (dolist (i (split-string (downcase... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add ability to type , in emacs\n\n\nFormer-commit-id: bb8bf863cee948e01a303e60acbbda650e052890"
},
{
"from": "human",
"value": "; Evil Leader\n\n(require 'evil-leader)\n(require 'evil-nerd-commenter)\n\n(global-evil-leader-mode)\n\n(evil-leader/set-leader \",\")\n(e... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Exclude org setup file from published docs\n"
},
{
"from": "human",
"value": ";; This file configures org modes publish functionality to generate the gh-pages site for this project.\n;; Load this file/buffer and then execute: M-x org-publish-project RET gh-pages RET... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Work around breakage of vc-darcs by Emacs 25.x changes\n"
},
{
"from": "human",
"value": "(require-package 'darcsum)\n(require-package 'vc-darcs)\n\n\n;; TODO: include this in the vc-darcs ELPA package\n(add-to-list 'vc-handled-backends 'DARCS)\n(autoload 'vc-darcs-... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove flycheck integration with next-error\n\nPrefere to call flycheck-next-error explicitly.\n"
},
{
"from": "human",
"value": "(require 'flycheck)\n\n(dolist (mode '(c\n elixir\n json\n python\n ruby))\n... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix syntax color loss in scss-mode\n"
},
{
"from": "human",
"value": "(use-package scss-mode\n :mode \"\\\\.scss$\"\n :config\n (progn\n (add-hook 'scss-mode-hook 'enable-tab-width-2)\n\n (setq-default css-indent-offset 2)\n (setq scss-compile-at-save ni... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add temporary hack to open org-todo-list on startup\n"
},
{
"from": "human",
"value": "(defvar after-make-console-frame-hooks '()\n \"Hooks to run after creating a new TTY frame\")\n(defvar after-make-window-system-frame-hooks '()\n \"Hooks to run after creating a... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove default abbrevs for sml (buggy)\n"
},
{
"from": "human",
"value": ";; Time-stamp: <2016-07-28 23:19:02 kmodi>\n\n;; Standard ML\n\n(use-package sml-mode\n :ensure t\n :mode ((\"\\\\.sml\\\\'\" . sml-mode))\n :config\n (progn\n (defun modi/sml-mode-hook... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add +everywhere flag to treemacs-evil"
},
{
"from": "human",
"value": ";; -*- no-byte-compile: t; -*-\n;;; ui/treemacs/packages.el\n\n(package! treemacs)\n(when (featurep! :feature evil)\n (package! treemacs-evil))\n(package! treemacs-projectile)\n"
},
{
"f... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Update Magit cherry-pick command in hydra\n"
},
{
"from": "human",
"value": "(define-key osx-key-mode-map [(alt m)] nil)\n(use-package magit\n :ensure t\n :demand\n :init\n (setq magit-auto-revert-mode nil)\n :config\n (defhydra hydra-magit (:color teal :hint ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove wrap, additional-wrap, & escape key themes\n\n+ Escape was redundant with Doom's own escape handler\n+ Disabled wrap/addition-wrap, as it isn't enabled by default, is\n potentially redundant with evil-{surround,embrace}, and prone to issues\n in tty emacs (see #2573).\... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Make Emacs open files in already-open frame\n"
},
{
"from": "human",
"value": "(setf inhibit-startup-screen t) ; disable welcome screen\n\n(setf ring-bell-function 'ignore) ; disable alarm bell\n\n(when (not (display-graphic-p))\n (menu-bar-mode -1)) ; disable menu... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Clarify meaning of obscure key binding\n"
},
{
"from": "human",
"value": "(when *is-a-mac*\n (setq mac-command-modifier 'meta)\n (setq mac-option-modifier 'none)\n (setq default-input-method \"MacOSX\")\n ;; Make mouse wheel / trackpad scrolling less jerky\n (s... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use erlang mode for .spec\n"
},
{
"from": "human",
"value": "(add-to-list 'auto-mode-alist '(\"\\\\.erl?$\" . erlang-mode))\n(add-to-list 'auto-mode-alist '(\"\\\\.hrl?$\" . erlang-mode))\n(setq erlang-root-dir \"/usr/local/lib/erlang/erts-5.9.2\")\n(add-to-list 'ex... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Clean up colors in terminal\n"
},
{
"from": "human",
"value": "(load-theme 'solarized-light 't)\n;; set font size\n(when (display-graphic-p)\n (set-face-attribute 'default nil :height 120))\n\n(provide 'lk/theme)\n"
},
{
"from": "gpt",
"value": ";; set ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Enable subword-mode in C/C++ files.\n\nThis matches the CamelCase style.\n"
},
{
"from": "human",
"value": ";;; Directory Local Variables\n;;; For more information see (info \"(emacs) Directory Variables\")\n\n((nil . ((fill-column . 80))))\n"
},
{
"from": "... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Hide status updates from lurkers\n"
},
{
"from": "human",
"value": "\n\n(use-package rcirc\n :config\n (setq rcirc-default-nick \"wilfredh\")\n (setq rcirc-server-alist\n '((\"irc.freenode.net\" :channels (\"#emacs\" \"#guile\"))\n (\"irc.mozilla.... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Remove require's from use-package config\n\nIt's automatically done.\n"
},
{
"from": "human",
"value": "(use-package evil-leader\n :ensure t\n\n :config\n (require 'evil-leader)\n (global-evil-leader-mode)\n\n (evil-leader/set-leader \"<SPC>\")\n (evil-leader/... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use define-key instead of outdated projectile-keymap-prefix\n"
},
{
"from": "human",
"value": "(when (maybe-require-package 'projectile)\n (add-hook 'after-init-hook 'projectile-mode)\n\n (setq projectile-keymap-prefix (kbd \"C-c C-p\"))\n\n ;; Shorter modeline\n... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Update to force deft to use the .md extension for new files\n"
},
{
"from": "human",
"value": ";;; deft-conf.el -- Settings for deft-mode.\n(eval-when-compile\n (require 'deft))\n\n\n(custom-set-variables\n `(deft-directory ,(expand-file-name \"~/notes/\"))\n '(d... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add theme options w/ comments\n"
},
{
"from": "human",
"value": ";; Load theme and set font\n(set-frame-font \"Droid Sans Mono-10\" nil t)\n(load-theme 'yoshi :no-confirm)\n"
},
{
"from": "gpt",
"value": ";; Set font\n;; (set-frame-font \"Droid Sans Mono... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix delete in windowed mode\n"
},
{
"from": "human",
"value": "(setq inhibit-startup-message t) \n(setq initial-scratch-message \";;; S C R A T C H B U F F E R ;;;\n\")\n\n(if window-system\n (progn\n (menu-bar-mode 1)\n (tool-bar-mode 0))\n (men... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix additional haskell compilation regexp entries\n"
},
{
"from": "human",
"value": "(require-package 'haskell-mode)\n\n(dolist (hook '(haskell-mode-hook inferior-haskell-mode-hook))\n (add-hook hook 'turn-on-haskell-doc-mode))\n\n(add-hook 'haskell-mode-hook 'turn... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Use less bright colors in neotree\n"
},
{
"from": "human",
"value": ";;; package --- Summary\n\n;;; Commentary:\n\n;;; Code:\n\n;; (set-face-foreground 'mode-line \"black\")\n;; (set-face-background 'mode-line \"purple\")\n;; (set-face-background 'mode-line-inactive... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Simplify Luhn implementation for readability\n"
},
{
"from": "human",
"value": ";;; luhn.el --- luhn (exercism)\n\n;;; Commentary:\n\n;;; Code:\n\n(require 'cl-lib)\n\n(defun luhn-p (str)\n \"Check if STR is valid using the Luhn algorithm.\"\n (let ((str (replace-... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix lazy loading of pylookup\n"
},
{
"from": "human",
"value": "(use-package pylookup\n :defer t\n :config\n (progn\n (setq pylookup-dir (concat user-extensions-directory \"/pylookup\"))\n ;; set executable file and db file\n (setq pylookup-program (conc... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Move js2 refactoring from C-l C-l to C-l C-r\n"
},
{
"from": "human",
"value": "(setq js2-basic-offset 2)\n\n(hs-minor-mode)\n\n(when (and (stringp buffer-file-name)\n (string-match \"\\\\.jsx\\\\'\" buffer-file-name))\n (aggressive-indent-mode -1))\n\n;;... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Change JS mode for better ECMAScript support.\n"
},
{
"from": "human",
"value": "(add-to-list 'el-get-sources\n\t '(:name js3-mode\n\t\t :after (setq js3-highlight-external-variables nil)))\n"
},
{
"from": "gpt",
"value": "(add-to-list 'el-get-so... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Complete snippets with company mode\n"
},
{
"from": "human",
"value": ";;; init-yasnippet.el -- yasnippet setup\n\n;;; Commentary:\n;;; yasnippet and custom snippets\n\n;;; Code:\n(require-package 'yasnippet)\n\n(require 'yasnippet)\n\n(setq yas-snippet-dirs\n ... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add gitignore-mode, gitattributes-mode, and gitconfig-mode as deps\n"
},
{
"from": "human",
"value": "(defvar kotct/dependency-list\n '(linum-off ;; turn linum off in certain modes\n ido-vertical-mode ;; use vertical menus for ido\n ido-grid-mode ;; use a gri... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Add line length check for Rust\n"
},
{
"from": "human",
"value": ";; Conventional max line length in Racket is 102 columns\n(add-hook 'racket-mode-hook (lambda () (column-marker-1 102)))\n(add-hook 'racket-mode-hook (lambda () (setq fill-column 102)))\n\n;; Show a c... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Fix company mode and fci integration\n\n* When the completion was cancelled fci mode was not being reactivated\n"
},
{
"from": "human",
"value": ";;; init-company.el -- Company mode setup\n\n;;; Commentary:\n;;; company setup\n\n;;; Code:\n(require-package 'company)... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Handle isearch-backward to show previous non visible match\n"
},
{
"from": "human",
"value": "(require 'isearch)\n\n;; TODO: handle for isearch-backward and wrap around\n(defun my-isearch-goto-next-non-visible-match ()\n \"Go to the next match that is beyond this w... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Define a shortcut for xmp in Ruby\n"
},
{
"from": "human",
"value": "(require 'rcodetools)\n(require 'ruby-compilation)\n(require 'inf-ruby)\n\n(add-hook 'ruby-mode-hook\n 'lambda()\n (local-set-key (kbd \"RET\") 'reindent-then-newline-and-indent))... | emacs-lisp | chosen |
[
{
"from": "system",
"value": "Update the code to add/remove hooks. It works but it uses the\ndelete-selection-mode value at emacs startup. If that mode is\ndeactivated in an emacs session, this file has to be loaded again manually.\n"
},
{
"from": "human",
"value": ";; Time-stamp: <2014-07-27 15... | emacs-lisp | chosen |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6