From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: jonetsu Newsgroups: gmane.emacs.help Subject: Saving and recalling registers, using the same key sequence ? Date: Wed, 20 Mar 2019 13:44:39 -0400 Message-ID: <20190320134439.51ea2240@mistral> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="126906"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 20 18:45:58 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6fHq-000WtT-2e for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Mar 2019 18:45:58 +0100 Original-Received: from localhost ([127.0.0.1]:51153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6fHo-0007K3-UX for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Mar 2019 13:45:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6fGh-0006cG-25 for help-gnu-emacs@gnu.org; Wed, 20 Mar 2019 13:44:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6fGf-0001G1-4T for help-gnu-emacs@gnu.org; Wed, 20 Mar 2019 13:44:46 -0400 Original-Received: from pmta21.teksavvy.com ([76.10.157.36]:27409) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6fGc-00016R-ED for help-gnu-emacs@gnu.org; Wed, 20 Mar 2019 13:44:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FF4gC8epJc/0Tb1BhlGgEBAQEBHwIBA?= =?us-ascii?q?QEBAwEBAQGBQgUBAQEBAwGBKGaBOAwVEo0vjQEBjgmLcSAYAYQ2BASEayM5BQw?= =?us-ascii?q?BAQMBAQEIAQMCAgJpKIYMHDsMGDQqhU+sQ4o0IoENAQEBAQEBAQGLQYE/QIN1h?= =?us-ascii?q?XyFFAORaoZWjDwJggGBP49kJQyBYQGJFYhiOp9yIYFWcBWDKIFeAY8HJoExAQY?= =?us-ascii?q?BAQEVCBMFBQEBi0UBAQ?= X-IPAS-Result: =?us-ascii?q?A2FF4gC8epJc/0Tb1BhlGgEBAQEBHwIBAQEBAwEBAQGBQgU?= =?us-ascii?q?BAQEBAwGBKGaBOAwVEo0vjQEBjgmLcSAYAYQ2BASEayM5BQwBAQMBAQEIAQMCA?= =?us-ascii?q?gJpKIYMHDsMGDQqhU+sQ4o0IoENAQEBAQEBAQGLQYE/QIN1hXyFFAORaoZWjDw?= =?us-ascii?q?JggGBP49kJQyBYQGJFYhiOp9yIYFWcBWDKIFeAY8HJoExAQYBAQEVCBMFBQEBi?= =?us-ascii?q?0UBAQ?= X-IronPort-AV: E=Sophos;i="5.60,249,1549947600"; d="scan'208";a="87479069" Original-Received: from 24-212-219-68.cable.teksavvy.com (HELO mistral) ([24.212.219.68]) by smtp.teksavvy.com with ESMTP; 20 Mar 2019 13:44:39 -0400 X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.36 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119700 Archived-At: Is it possible to save a text register and use it in the exact same way at a later time ? For instance, I define very simple useful things that I recall by doing: C-x r i i ;; inserts : #include <> C-x r i u ;; inserts : using std::; C-x r i n ;; inserts : << '\n'; I would like to have these always ready when editing C++ code. They could be globally defined, or bound to the editing of C++ files, I wouldn't mind. Thanks.