# M-x recompile

DevFeed: [M-x recompile](<https://devfeed.tech/articles/m-x-recompile-34468.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2012/06/m-x-recompile/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2012-06-01T16:45:00Z

Content type: tutorial

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [Emacs](<https://devfeed.tech/topics/emacs.md>), [Code](<https://devfeed.tech/topics/code.md>), [Usability](<https://devfeed.tech/topics/usability.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [emacs](<https://devfeed.tech/tags/emacs.md>), [emacs-lisp](<https://devfeed.tech/tags/emacs-lisp.md>), [usability](<https://devfeed.tech/tags/usability.md>)

## AI overview

An Emacs user adapts the compile workflow by binding a key to M-x compile and using a prefix key to rerun the previous compile command. The article presents an Emacs Lisp workaround and notes ways it could be refined.

## Source excerpt

A friend of mine just asked me for advice to tweak some Emacs features, and I think that's really typical of using Emacs: rather than getting used to the way things are shipped to you, when using Emacs, you start wanting to adapt the tools to the way you want things to be working instead. And you can call that the awesome! In this case we're talking about the M-x compile and M-x recompile functions. My friend bound the former to <f11> and wanted that C-u f11 do a recompile with the exact same command line as the previous compile command.